Search the parsed blocks of an extraction job's datasheet
datasheetvend_search_document_blocksCase-insensitive text search over the parsed blocks' text and table cells: each hit gives the block id, page, type, box and a snippet; a table hit also gives the cell's id, row, column and box. Scope it to a section (section_id, or heading_text) and to the job's target package; filter by pages and block types; paged (offset / next_offset, at most 100 hits). Unlike datasheetvend_search_document (raw text lines of the document map), hits here are typed blocks you can read whole with datasheetvend_read_document_block. Deterministic: reads the job's stored parse (parsed_document_v1), calls no model and extracts nothing. Costs no credits. Needs a DatasheetVend API key; readable jobs are your own, your workspace's TEAM-shared jobs and PUBLIC jobs, as on the REST API. Refusals: NOT_PARSED / PARSE_FAILED (no usable parse stored for this job), PARSE_EXPIRED (past retention), DOCUMENT_TOO_LARGE (over 20,000 blocks). Every block, cell and word comes with its page, box ([x0, y0, x1, y1] in PDF points, origin top-left), quoted text and parse {document_sha256, parser_version, block_id, cell_id}; block ids are stable only within one parser_version.
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": {
"job_id": "<job_id>",
"query": "<query>"
},
"name": "datasheetvend_search_document_blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Hits to return. Default 20, at most 100. | |
| pages | No | Only these physical 1-based pages (at most 50). | |
| query | Yes | The text to find, 2-120 characters (e.g. 'VDD', 'Absolute Maximum'). | |
| types | No | Only these block types. | |
| job_id | Yes | An extraction job in your account (or shared with it). | |
| offset | No | Skip this many hits (from next_offset). Default 0. | |
| section_id | No | Only this section and the sections below it. | |
| heading_text | No | Only sections whose heading holds this text, and the sections below them (e.g. 'Pin Description'). | |
| target_package_only | No | Skip blocks printed for another package than the job's target part (the packets' own package scope). Default true; with no known target nothing is skipped and scope.package_scope says target_package_unknown. |