search_pdf
Locate a phrase in a PDF and get every match with its page number and bounding-box coordinates. Supports case-sensitive searches.
Instructions
Search for a phrase in a PDF and return every matching text item with its page number and bounding-box coordinates.
Returns JSON: { "phrase", "match_count", "matches": [ { "page_num", "text", "x", "y", "width", "height", "font_size" } ] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phrase | Yes | Text phrase to search for. | |
| pdf_path | Yes | Absolute path to the PDF file. | |
| case_sensitive | No | Case-sensitive match. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |