Export Docling document to markdown format
export_docling_document_to_markdownConvert a cached Docling document into a markdown string for display or further processing, with optional single-page export and character limit.
Instructions
Export a document from the local document cache to markdown format.
This tool converts a Docling document that exists in the local cache into a markdown formatted string, which can be used for display or further processing. Set page_no to export a single page instead of the whole 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": "export_docling_document_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_no | No | Page number to export (1-based). When omitted, all pages are exported. | |
| max_size | No | The maximum number of characters to return. | |
| document_key | Yes | The unique identifier of the document in the local cache. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | Yes | ||
| document_key | Yes |