Read graph values and text from a page region
get_figure_dataReturns what a region of a document page (a datasheet, or a computed sheet in related_documents) draws as PDF vectors and text. For graphs drawn with vector paths: per-plot axis calibration from printed tick labels, curve points in data units, y at requested x_values and x at requested y_values (reverse lookup); values are withheld when the axes are not certain. For any region (graphs, package drawings, pinouts, schematics): region_text, the PDF text-layer items with positions. region takes the page and bbox_rel of a get_datasheet_map figure, widened by about 10% of the page. Curve names and which text labels what are not identified; get_page_image shows them. No OCR, fitting to models or unit conversion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| region | No | normalized x/y/width/height on the rotation-applied page (top-left origin); default whole page | |
| x_values | No | x positions in the graph's own units (e.g. 0.001 for 1 ms on a seconds axis); each curve reports y or why not | |
| y_values | No | y positions in the graph's own units for reverse lookup (e.g. collector current on an Ic–VCE graph); each curve reports x (inverse_samples) or why not. x_values + y_values ≤ 20 | |
| doc_sha256 | Yes | ||
| include_text_layout | No | add text baselines and baseline-aligned row candidates (text_id references) to region_text — for small tables inside figures; meaning of rows is not interpreted | |
| max_points_per_curve | No | default 200; points are simplified (0.1 pt) and capped, samples use the full geometry | |
| include_annotation_geometry | No | add per plot the thin/short lines excluded from curves (label leader lines, legend swatch candidates) with the texts and curves near their ends — geometry only; which label belongs to which curve is not decided |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| page | No | ||
| plots | No | ||
| reason | No | ||
| region | No | ||
| status | Yes | ||
| message | No | ||
| omitted | No | ||
| extractor | No | ||
| page_size | No | ||
| pdf_bytes | No | ||
| retryable | No | ||
| doc_sha256 | No | ||
| page_count | No | ||
| request_id | No | ||
| point_basis | No | ||
| region_text | No | ||
| citation_url | No | ||
| region_basis | No | ||
| retry_after_ms | No | ||
| sample_summary | No | ||
| schema_version | No | ||
| withdrawn_note | No | ||
| withdrawn_documents_omitted | No |