Execute Gemini Prompt
executePromptRuns a non-interactive prompt in the local Gemini CLI and returns the final result plus execution metadata. Delegates tasks to Gemini with configurable model, directory, timeout, and approval mode.
Instructions
Runs a non-interactive prompt through the locally installed Gemini CLI and returns the final result plus execution metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory for the Gemini CLI process | |
| model | No | Optional Gemini model name | |
| prompt | Yes | Prompt to send to the local Gemini CLI | |
| timeoutMs | No | Optional timeout in milliseconds | |
| approvalMode | No | Optional Gemini CLI approval mode |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| args | Yes | ||
| signal | Yes | ||
| stderr | Yes | ||
| stdout | Yes | ||
| aborted | Yes | ||
| command | Yes | ||
| exitCode | Yes | ||
| timedOut | Yes | ||
| elapsedMs | Yes | ||
| finalText | Yes | ||
| errorMessage | No | ||
| workingDirectory | No | ||
| effectiveApprovalMode | No |