convert
Write a loaded document as linked XLSX tables or a ZIP of CSVs using a reviewed spec run deterministically; provide the spec inline or as a file and optionally override the format.
Instructions
Write a loaded document out as linked tables — one .xlsx workbook, or a .zip of CSVs — by running a frozen converter spec deterministically. The spec comes from draft_spec, reviewed or edited: pass it inline as spec or as a file in specPath, exactly one of the two. format overrides the format the spec names. Returns row/skipped/warning counts, never the output rows. An existing outPath is refused unless overwrite=true. For one query's result as a single CSV or JSONL file, use export_result instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | Inline specVersion 1 converter spec. | |
| docId | Yes | A docId returned by load_doc. | |
| format | No | Optional output-format override. | |
| outPath | Yes | Destination .xlsx or .zip path. | |
| specPath | No | Path to a converter spec; use either this or spec. | |
| overwrite | No | Replace outPath only when explicitly true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| hint | No | ||
| tool | Yes | ||
| error | No | ||
| evicted | No | ||
| structuredTruncated | No |