Convert document into Docling document
convert_document_into_docling_documentConvert a PDF, DOCX, HTML, or image from a URL or local path into a structured Docling document for parsing and caching.
Instructions
Convert a document from a URL or local path into a Docling document.
Use this tool when you have an existing file (PDF, DOCX, HTML, image, etc.) that you want to load and parse.
This tool takes a document's URL or local file path, converts it using the configured converter (remote API or local), and stores the resulting Docling document in a local cache. It returns an output with a boolean set to False along with the document's unique cache key. If the document was already in the local cache, the conversion is skipped and the output boolean is set to True.
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": {
"source": "<source>"
},
"name": "convert_document_into_docling_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | The URL or local file path to the document. Object-storage URIs (abfs://, az://, gcs://, gs://, s3://) are supported when the matching provider extra is installed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_cache | Yes | ||
| document_key | Yes |