Query plan
query_projectUse this to check a plan against building rules, such as accessibility or US code, or for questions that describe_plan does not answer. Runs a read-only script and returns what it returns. Scripts work as in edit_project, but only plan.floors, plan.elements, plan.get, plan.describe, plan.warnings, plan.check and plan.search are available; plan.check("din18040-2") or plan.check("irc2021") checks the plan against DIN 18040-2 for barrier-free dwellings or the 2021 IRC.
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": {
"project_id": "<project_id>",
"script": "<script>"
},
"name": "query_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | JavaScript that reads the plan through plan and returns a value, such as return plan.check("irc2021"). | |
| project_id | Yes | The project's ID from list_projects or create_project. It is an internal key: people know their plans by title. |