execute_command
Execute a shell command with configurable timeout, polling interval, and timeout action. Supports background execution with durable job_id for long tasks, or kill/return_partial for synchronous work.
Instructions
Execute a shell command with an explicitly selected runtime, timeout, recheck interval, and timeout action. Explicit execution timing is supported. Before calling, deliberately choose expected_runtime_seconds, timeout_seconds, check_after_seconds, poll_interval_seconds, and on_timeout. Use on_timeout='continue_background' for long work that should return a durable job_id for later job_status/job_logs/job_wait checks; use 'kill' or 'return_partial' for bounded synchronous work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| command | Yes | ||
| on_timeout | No | kill | |
| timeout_seconds | No | ||
| max_output_bytes | No | ||
| check_after_seconds | No | ||
| poll_interval_seconds | No | ||
| expected_runtime_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||