Prompt CLI Agent
promptSubmit a prompt to a CLI agent for background execution, returning a task ID to poll for results, preventing timeouts on long operations.
Instructions
Send a prompt to a CLI runner as a background task.
Returns immediately with a task ID. Client polls for results. This prevents timeouts for long operations (YOLO mode: 2-5 minutes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cli | No | CLI runner name (e.g., "codex"). None triggers interactive selection. | |
| prompt | Yes | Prompt text to send to the runner | |
| context | No | Optional context metadata | |
| execution_mode | No | 'default' (safe) or 'yolo'. None inherits session preference. | |
| model | No | Model name. None triggers interactive selection or uses CLI default. | |
| max_retries | No | Max retry attempts for transient errors (None inherits session preference). | |
| output_limit | No | Max output bytes (None inherits session preference or uses env default). | |
| timeout | No | Subprocess timeout seconds (None inherits session preference or uses env default). | |
| retry_base_delay | No | Base delay seconds for exponential backoff (None inherits session/config). | |
| retry_max_delay | No | Backoff ceiling in seconds (None inherits session preference or config). | |
| elicit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |