run_api_command
Executes official Archicad JSON API commands, such as API.GetElementsByType, with parameters. Use it to query or modify an open Archicad project programmatically via Graphisoft's JSON API.
Instructions
Runs an official Archicad JSON API command, e.g. 'API.GetElementsByType' or 'API.GetBuiltInPropertyIds'. See Graphisoft's JSON API reference for parameters.
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": {
"command": "<command>"
},
"name": "run_api_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command name starting with 'API.'. | |
| parameters | No |