execute_terminal
Executes shell commands in an isolated sandbox for file management and dependency installation, returning stdout, stderr, and exit code.
Instructions
Runs a shell command inside the sandbox.
Useful for listing files, installing Linux dependencies, etc.
Args:
session_id: ID returned by create_session.
command: Shell command to execute (e.g. "ls -la", "apt-get install -y curl").
Returns:
JSON with stdout, stderr, and exit_code.
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": {
"session_id": "<session_id>",
"command": "<command>"
},
"name": "execute_terminal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||