Extract a drawing PDF’s text layer
extract_drawing_textRead text tokens from a technical-drawing PDF page, providing each token's text, position, and a unit system guess to aid in classifying values for metric-imperial conversion.
Instructions
Read the printed text tokens of one page of a technical-drawing PDF: each token with its index, text and position (page points, top-left origin, rotation in degrees), plus page geometry and a heuristic guess of the drawing’s unit system. Use the token indices to build classifications for convert_drawing_pdf when you want to decide yourself which tokens are convertible values (e.g. mark a bare "3.2" next to a surface symbol as category=surface, or a title-block number as skip).
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": {
"path": "<path>"
},
"name": "extract_drawing_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number (default 1) | |
| path | Yes | path to the drawing PDF |