cc_shell
Run a shell command or program in an in-game ComputerCraft computer and return its output, with errors and printError text reported in stderr. Use it to check files (ls) or execute programs with arguments.
Instructions
Run a shell command or program (ls, edit-less programs, myprogram arg) and return its output.
A failing program returns ERROR with the message and its printError output in stderr.
Interactive programs that wait for keys will time out.
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": {
"command": "<command>"
},
"name": "cc_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| computer | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |