Suite operations
suite.command.list
Lists the commands of the program, with aliases and what each one does.
- Program: All programs
- Type of action: Reads the drawing
- Read only
- Since version 2027.0.0-beta.6
Searches the command registry by words of the name, alias or summary. With detail, each command comes with its automation description: the questions it asks in order (with the option letters in brackets, the same as AutoCAD in English) and the equivalent typed operation, when there is one. Paged: pass next_cursor as cursor to get the next page.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | null | No | Continue after this item: pass the next_cursor of the previous page. |
detail | boolean | null | No | More information per item (all properties; for commands, the questions). |
limit | integer | null | No | Maximum number of items in this page. |
query | string | null | No | Words to look for in the name, alias or summary (empty: all). |
Errors
| Code | JSON-RPC | Meaning |
|---|---|---|
invalid_params | -32602 | The parameters do not follow the schema or a rule of the operation. |
Example
MCP
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"arguments": {
"query": "circle"
},
"operation": "suite.command.list"
},
"name": "badbit_call_operation"
}
}Python
Python
import badbit
result = badbit.suite.command.list(query="circle")LISP
LISP
(badbit-call "suite.command.list" '(("query" . "circle")))JSON-RPC
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "badbit/call",
"params": {
"arguments": {
"query": "circle"
},
"operation": "suite.command.list"
}
}Full schema
JSON Schema 2020-12.
Parameters (input)
JSON
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"cursor": {
"default": null,
"description": "Continue after this item: pass the next_cursor of the previous page.",
"type": [
"string",
"null"
]
},
"detail": {
"default": null,
"description": "More information per item (all properties; for commands, the questions).",
"type": [
"boolean",
"null"
]
},
"limit": {
"default": null,
"description": "Maximum number of items in this page.",
"format": "uint32",
"maximum": 500,
"minimum": 1,
"type": [
"integer",
"null"
]
},
"query": {
"default": null,
"description": "Words to look for in the name, alias or summary (empty: all).",
"type": [
"string",
"null"
]
}
},
"type": "object"
}Result (output)
JSON
{
"$defs": {
"Command": {
"properties": {
"aliases": {
"description": "The short names typed on the command line.",
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"description": "Object identifier (32 hexadecimal digits), or command identifier in the command list.",
"type": "string"
},
"name": {
"description": "Name (of the layer, of the system variable or of the command, depending on the operation).",
"type": "string"
},
"note": {
"description": "Note about the command (opens a window, not used by automation…).",
"type": [
"string",
"null"
]
},
"operation": {
"description": "The typed operation that does the same.",
"type": [
"string",
"null"
]
},
"prompts": {
"description": "The questions the command asks, in order (options in brackets with the letters to type).",
"items": {
"type": "string"
},
"type": "array"
},
"summary": {
"description": "What it does.",
"type": "string"
}
},
"required": [
"id",
"name",
"aliases",
"summary"
],
"type": "object"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"commands": {
"description": "The commands.",
"items": {
"$ref": "#/$defs/Command"
},
"type": "array"
},
"next_cursor": {
"description": "Pass as cursor to get the next page (absent: this was the last one).",
"type": [
"string",
"null"
]
},
"total": {
"description": "How many items match the filters (in all pages).",
"format": "uint",
"minimum": 0,
"type": "integer"
}
},
"required": [
"commands",
"total"
],
"type": "object"
}