Operaciones de la suite
suite.command.list
Lista los comandos del programa, con los alias y lo que hace cada uno.
- Programa: Todos los programas
- Tipo de acción: Lee el dibujo
- Solo lectura
- Desde la versión 2027.0.0-beta.6
Busca en el registro de comandos por palabras del nombre, del alias o del resumen. Con detail, cada comando viene con su descripción de automatización: las preguntas que hace, en orden (con las letras de las opciones entre corchetes, las mismas de AutoCAD en inglés), y la operación tipada equivalente, cuando existe. Por páginas: pase el next_cursor como cursor para la siguiente.
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
cursor | string | null | No | Continuar después de este elemento: pase el next_cursor de la página anterior. |
detail | boolean | null | No | Más información por elemento (todas las propiedades; en los comandos, las preguntas). |
limit | integer | null | No | Número máximo de elementos en esta página. |
query | string | null | No | Palabras que buscar en el nombre, el alias o el resumen (vacío: todos). |
Errores
| Código | JSON-RPC | Qué significa |
|---|---|---|
invalid_params | -32602 | Los parámetros no siguen el esquema o una regla de la operación. |
Ejemplo
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"
}
}Esquema completo
JSON Schema 2020-12, con las descripciones en inglés.
Parámetros (entrada)
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"
}Resultado (salida)
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"
}