Update text of Docling document item at anchor
update_text_of_document_item_at_anchorModify the text content of a specific item within a cached document using its anchor reference.
Instructions
Update the text content of a specific document item identified by its anchor.
This tool modifies the text of an existing document item at the specified anchor location within a document that exists in the local document cache. It requires that the document already exists in the cache before a modification can be made.
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>",
"updated_text": "<updated_text>"
},
"name": "update_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. | |
| updated_text | Yes | The new text content to replace the existing content. | |
| document_anchor | Yes | The anchor reference that identifies the specific item within the document. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_key | Yes |