Save Docling document
save_docling_documentSave a cached document to disk as Markdown and JSON, optionally exporting only a specific page to Markdown while keeping the full JSON document.
Instructions
Save a document from the local document cache to disk in both markdown and JSON formats.
This tool takes a document that exists in the local cache and saves it to the specified cache directory with filenames based on the document key. Both markdown and JSON versions of the document are saved. When page_no is set, only that page is saved in markdown, to a page-specific file, while the JSON file still contains the full document.
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": {
"document_key": "<document_key>"
},
"name": "save_docling_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_no | No | Page number to export to the markdown file (1-based). When omitted, all pages are exported. The JSON file always contains the full document. | |
| document_key | Yes | The unique identifier of the document in the local cache. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| md_file | Yes | ||
| json_file | Yes |