Read the text of a PDF
pdf_findRead the text of a PDF: every span with its page, position, font and span id, optionally filtered by query (the same four match modes an edit uses) and pages, over the content, forms and annotations layers. Paginated: pass the returned next_cursor back as cursor for the next page. Use it before pdf_edit to check what a document actually says and to pick the scope that selects the match you mean.
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": {
"file": "<file>"
},
"name": "pdf_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | Also read pages by recognition: 'auto' for pages with no text layer, 'on' for every page named. Limited to 3 pages per request; the rows carry `is_ocr` and `confidence`, and their ids (`p1o3`) are not editable by `span_ids` -- edit them with `find` plus `scope.region` and `options.ocr`. (default: "off") | |
| file | Yes | The PDF: an absolute (or ~) local path, which this server uploads for you, an https:// URL the API fetches, or an `f_…` file id from an earlier call. | |
| limit | No | (default: 200) | |
| match | No | ||
| pages | No | ||
| query | No | ||
| cursor | No | ||
| images | No | Also list the images each page draws (`images[]`: page, name, bbox, pixels) -- what `op: remove_image` takes a box from. (default: false) | |
| layers | No | ||
| password | No |