Execute Delegated Task
executeTaskOffload complex tasks to the local Gemini CLI and receive a direct final answer plus execution metadata.
Instructions
AI-friendly task interface. Accepts a task description and returns a direct, meaningful final answer plus execution metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory for the Gemini CLI process | |
| task | Yes | Task to delegate to the local Gemini CLI | |
| model | No | Optional Gemini model name | |
| context | No | Optional task context for Gemini | |
| timeoutMs | No | Optional timeout in milliseconds | |
| approvalMode | No | Optional Gemini CLI approval mode. If omitted, file-mutating tasks default to auto_edit. | |
| expectedOutput | No | Optional instructions describing the desired final answer format |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| args | Yes | ||
| answer | Yes | ||
| signal | Yes | ||
| stderr | Yes | ||
| stdout | Yes | ||
| aborted | Yes | ||
| command | Yes | ||
| exitCode | Yes | ||
| timedOut | Yes | ||
| elapsedMs | Yes | ||
| errorMessage | No | ||
| workingDirectory | No | ||
| effectiveApprovalMode | No |