write_document
Create and save documents in Excel, Word, PowerPoint, or text formats by providing structured data and specifying the output file path.
Instructions
Write document content (Excel, Word, PowerPoint, Text)
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": {
"file_path": "<file_path>",
"format": "<format>",
"data": "<data>"
},
"name": "write_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to save the document | |
| format | Yes | Document format | |
| data | Yes | Document data structure. Excel: array of rows [[cell1, cell2], ...]. Word: {paragraphs: string[], tables?: [[[cell]]]}. Text/CSV/JSON: string or object |