Run command on webspace
webspace_execRun a shell command as the webspace's unprivileged site user. Jailed to /home//. Returns { stdout, stderr, exitCode }, each output limited to 256 KB.
Use timeoutSeconds (default 60, max 300) for the per-command timeout.
For longer work, launch in the background with nohup ... & and poll a log file
(see vps_exec description for the pattern).
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": {
"id": "<id>",
"command": "<command>"
},
"name": "webspace_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The webspace ID | |
| command | Yes | ||
| timeout | No | DEPRECATED: use `timeoutSeconds`. Same semantics (seconds). | |
| timeoutSeconds | No | Per-command timeout in seconds. Default 60, max 300. |