Skip to content
1 min read · 43 words

Variable: xmlToJsonTool

ts
const xmlToJsonTool: Tool<SpooledJsonArtifact<unknown>>;

Defined in: src/batteries/artifacts/xml/index.ts:559

A tool that converts XML (inline or from an artifact) to JSON.

Remarks

Input is either text (inline XML) or call_id (an XML artifact from earlier in this turn). Provide exactly one. Returns a new SpooledJsonArtifact.