Convert file
sheet_convertConvert a spreadsheet sheet between XLSX, CSV, and JSON while leaving the source file unchanged. Writes a new file and returns its path with row and column counts.
Instructions
Call this tool to convert a sheet between excel (xlsx), csv and json. Writes a new file next to the source unless out_path is given; the source is never modified. Returns the new file path with its row and column counts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"to": "<to>"
},
"name": "sheet_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target format; the default out_path takes this as its extension | |
| path | Yes | Path to the source .xlsx/.xlsm/.xlsb/.ods/.csv/.tsv file (~ is expanded); it is never modified | |
| sheet | No | Sheet to convert; default is the first sheet. Only that one sheet is written | |
| out_path | No | Where to write; default is the source name with the new extension, next to the source. It must differ from the source path |