merge_documents
Merge multiple PDF files into one combined document on disk, combining pages and remapping takeoff keys from all source files.
Instructions
Merge multiple PDF files into one combined PDF document on disk. Combines the pages and remaps takeoff keys from all source documents. 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": {
"files": "<files>",
"output_path": "<output_path>"
},
"name": "merge_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | List of PDF files to merge in order (can be loaded file names or file paths on disk) | |
| 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 | Yes | Destination path for the merged PDF |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| output_file | Yes | ||
| total_pages | Yes | ||
| merged_files | Yes | ||
| takeoff_file | No | ||
| shapes_remapped | Yes |