Execute Command
fc_execute_commandExecute shell commands with optional working directory and timeout. Return command output. Use for running system commands, scripts, or checking tool versions.
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 |
|---|---|---|---|
| command | Yes | Command to execute | |
| cwd | No | Working directory | |
| timeout | No | Timeout in ms |