Operaciones de la suite
suite.input.entity
Pide que la persona elija un objeto con un clic, como entsel de LISP.
- Programa: Todos los programas
- Tipo de acción: Lee el dibujo
- Solo lectura
- Desde la versión 2027.0.0-beta.6
Devuelve el identificador del objeto y el punto del clic; el clic en vacío devuelve el identificador vacío. Esc cancela la petición.
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
message | string | null | No | La pregunta que se muestra en la línea de comando. |
Errores
| Código | JSON-RPC | Qué significa |
|---|---|---|
cancelled | -32012 | Cancelado (Esc, desconexión o cierre). |
busy | -32006 | BadBit está abriendo o guardando un archivo; inténtelo de nuevo en un momento. |
Ejemplo
MCP
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"arguments": {
"message": "Select a line:"
},
"operation": "suite.input.entity"
},
"name": "badbit_call_operation"
}
}Python
Python
import badbit
result = badbit.suite.input.entity(message="Select a line:")LISP
LISP
(badbit-call "suite.input.entity" '(("message" . "Select a line:")))JSON-RPC
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "badbit/call",
"params": {
"arguments": {
"message": "Select a line:"
},
"operation": "suite.input.entity"
}
}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": {
"message": {
"default": null,
"description": "The question shown on the command line.",
"maxLength": 500,
"type": [
"string",
"null"
]
}
},
"type": "object"
}Resultado (salida)
JSON
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"description": "Object identifier (32 hexadecimal digits), or command identifier in the command list.",
"type": [
"string",
"null"
]
},
"location": {
"description": "The point [x, y, z].",
"items": {
"format": "double",
"type": "number"
},
"maxItems": 3,
"minItems": 3,
"type": [
"array",
"null"
]
}
},
"required": [
"id",
"location"
],
"type": "object"
}