Run command
run_commandRuns a one-off shell command (a migration, a seed script) on an app in a fresh instance with the app's image and environment. Returns the run id, and the status and last 50 output lines if it finishes within timeout_seconds (default 8, at most 10). Changes data: confirm the exact command with the user first.
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": {
"name": "<name>",
"command": "<command>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The app's name. | |
| command | Yes | The command, run with /bin/sh -c. | |
| timeout_seconds | No | How long to wait for output (default 8; 0 returns at once). |