cad_read
Use a read-only script to inspect an open CAD, BIM, or 3D model and return results without modifying it.
Instructions
Run a script that only INSPECTS the app's open model. Nothing may be changed.
app: an id from cad_apps, for example "blender", "autocad", "revit".
code: the script, in the language given by cad_skill(app). Set result = ...
(or end with an expression) to return data; printed text comes back too.
instance: port of one instance when cad_apps lists several of the same app.
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": {
"app": "<app>",
"code": "<code>"
},
"name": "cad_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| code | Yes | ||
| instance | No | ||
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |