convert_document
Converts documents between markdown, JSON, YAML, HTML, CSV, TXT, and JSONL formats using absolute input and output paths; auto-detects formats when not specified.
Instructions
Convert documents. Input/Output: md, json, yaml, yml, html, csv, txt, jsonl, ndjson.
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "convert_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pretty | No | Pretty-print output (optional, default true) | |
| inputPath | Yes | Absolute path to input document | |
| outputPath | Yes | Absolute path for output document (include extension) | |
| inputFormat | No | Input format (auto-detected if not provided) | |
| outputFormat | No | Output format (auto-detected if not provided) |