Execute Command
fc_execute_commandRuns shell commands and returns their output, with optional working directory and timeout controls.
Instructions
Executes a shell command and returns the output.
Args:
command (string): Command to execute
cwd (string, optional): Working directory
timeout (number, optional): Timeout in milliseconds (default: 30000)
Warning: Commands are executed with user privileges!
Examples:
command: "dir" (Windows)
command: "ls -la" (Unix)
command: "python --version"
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": "fc_execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory | |
| command | Yes | Command to execute | |
| timeout | No | Timeout in ms |