Get text of Docling document item at anchor
get_text_of_document_item_at_anchorRetrieve the exact text content of a specific document item using its anchor reference, making it easy to extract targeted text from cached Docling documents.
Instructions
Retrieve the text content of a specific document item identified by its anchor.
This tool extracts the text from a Docling document item at the specified anchor location within a document that exists in the local document cache.
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>",
"document_anchor": "<document_anchor>"
},
"name": "get_text_of_document_item_at_anchor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_key | Yes | The unique identifier of the document in the local cache. | |
| document_anchor | Yes | The anchor reference that identifies the specific item within the document. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |