Execute Command
fc_execute_commandRun a shell command and capture its output. Optionally set the working directory and timeout.
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"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory | |
| command | Yes | Command to execute | |
| timeout | No | Timeout in ms |