modo_run_command
Executes one Modo command to set or query scene values; drive modelling tools with tool.set, tool.setAttr, and tool.doApply, with crash-risk commands refused unless acknowledged.
Instructions
Run one Modo command, e.g. 'item.create mesh' or 'select.type polygon'. Append ' ?' to query a value instead of setting it. Modelling tools such as bevel, extrude or primitives are not commands: drive them with 'tool.set on', 'tool.setAttr ', 'tool.doApply', 'tool.set off'. Verify unfamiliar commands with modo_get_command_info first: a wrong argument name fails rather than being ignored. Never query 'commandservice command. ? {name}' for an unverified name -- it crashes Modo 17.1, so the bridge refuses it. Commands known to crash Modo are refused until repeated with acknowledge_risk=true -- save the scene before doing so. For anything that changes the scene, fill 'purpose' with one plain sentence about the effect.
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": "modo_run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| purpose | No | For anything that changes the scene: one short sentence about the effect, shown to the user before approval and in Modo's event log. | |
| instance | No | This chat's Modo instance token (modo-xxxxxx) from modo_use_instance or modo_launch_instance. Pass it on every call once you have one; leave empty only while a single chat works with Modo. | |
| timeout_ms | No | ||
| acknowledge_risk | No | ||
| rollback_on_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |