List the sections of an extraction job's datasheet
datasheetvend_list_document_sectionsThe section tree of the job's parsed datasheet: each section's id (its heading block), heading text, level and printed number, page and box of the heading, parent section, heading path, block and subsection counts and page span. Paged (offset / next_offset, at most 300); filter by max_level and page range. 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>"
},
"name": "datasheetvend_list_document_sections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Sections to return. Default 100, at most 300. | |
| job_id | Yes | An extraction job in your account (or shared with it). | |
| offset | No | Skip this many sections (from next_offset). Default 0. | |
| page_to | No | Only sections whose heading is on this page or earlier. | |
| max_level | No | Only sections at this heading level or above (1 = top level). | |
| page_from | No | Only sections whose heading is on this page or later. |