Search for text in Docling document anchors
search_for_text_in_document_anchorsLocate exact text inside document anchors using case-insensitive search; if absent, get keyword matches with occurrence counts.
Instructions
Search for specific text and keywords within a document's anchors.
This tool takes a string of text to search for and returns a string of all document anchors that contain the exact text. The search is case-insensitive. If the exact text is not found, the tool will search for individual keywords within the text, splitting it on non-alphanumeric characters. If keywords are found, they are listed alongside their number of occurrences in parentheses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The string of text to search for in the document's anchors. | |
| document_key | Yes | The unique identifier of the document in the local cache. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |