load_plan
Opens a plan PDF from disk as a project, reopening the existing project for that file or creating a new one; optionally merges the document into a project's plan set.
Instructions
Open a plan PDF from disk as a project. The file is checked first (it must exist and be a PDF): nothing is created for a bad path. Without project_id: the project that already holds this file (same name, same file) is REOPENED with its scales, conditions and shapes, and the answer says project: "reopened"; otherwise a new project is made (project: "created"). new_project: true always makes a new one. project_id adds the document to that project; merge: true ADDS it to the project the session is on (#152) — a bid set is plans + schedule + addenda, not one PDF — keeping every scale, condition, and shape; sheet keys carry file names so documents never collide. Re-merging a file the project already has is refused. Returns project_id, project, file, files, page_count, and one entry per sheet. 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": {
"path": "<path>"
},
"name": "load_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a plan PDF on disk | |
| merge | No | true = ADD this document to the working set, keeping all existing work (merge into an empty session is just a load) | |
| project_id | No | The project to work on (list_projects names them). Optional for the open-source arguments: the project the last call named (load_plan makes one) is used. | |
| new_project | No | true = always make a new project, even when one already holds this file |