ejecutar_comando
Runs shell commands on a remote Linux server over SSH and returns exit code, stdout, and stderr; use non-interactive flags for prompts.
Instructions
Ejecuta un comando de shell en el servidor y devuelve código de salida, stdout y stderr.
No es interactivo: comandos que piden datos (contraseñas, confirmaciones, editores) fallan o se cancelan al agotar el tiempo. Usa flags como -y o --no-pager.
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": {
"servidor": "<servidor>",
"comando": "<comando>"
},
"name": "ejecutar_comando"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comando | Yes | ||
| servidor | Yes | ||
| timeout_segundos | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |