extract_pages
Extract selected pages from a loaded PDF into a new PDF file while preserving their takeoff shapes and annotations, useful for splitting plans into smaller, focused drawing sets.
Instructions
Extract a subset of pages from a loaded PDF into a new PDF file on disk. Carries all takeoff shapes and annotations on those pages into the new document (mapped to pages 1..N). Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.
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>",
"pages": "<pages>"
},
"name": "extract_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The loaded PDF file name | |
| pages | Yes | 1-based page numbers to extract, e.g. [2, 3] | |
| overwrite | No | Replace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately destroy an unrelated file. | |
| output_path | No | Destination file path (default: "<file>_extracted.pdf") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| page_count | Yes | ||
| output_file | Yes | ||
| source_file | Yes | ||
| takeoff_file | No | ||
| shapes_carried | Yes | ||
| extracted_pages | Yes |