draft_spec
Generates a reviewable JSON converter spec for a loaded document's tables so you can edit settings before running the conversion.
Instructions
Draft a reviewable converter spec for a loaded document, usually after inspect shows its tables. This does not convert anything: pass the spec to convert, inline or as the file you saved. Save it to outPath for human editing, or omit outPath to return the JSON under the response cap; an existing outPath is refused unless overwrite=true. format picks one .xlsx workbook or a .zip of CSVs; baseDate gives time-only columns a date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | A docId returned by load_doc. | |
| format | No | Desired output format (default xlsx). | |
| outPath | No | Optional path for the drafted .json spec. | |
| baseDate | No | Optional yyyy-MM-dd or today for time-only columns. | |
| 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 |