Ask agy (Antigravity/Gemini)
agy_askSend a prompt to the agy CLI and receive a response from Gemini models. Use for model queries, delegation, or continuing conversations.
Instructions
Send a prompt to the agy CLI (Antigravity, Gemini-backed) and return its response.
Runs agy non-interactively in print mode. Use this for a second opinion from Gemini/Claude/GPT models, to delegate a self-contained task, or to continue a multi-turn agy conversation.
Args:
prompt (string, required): The prompt to send.
model (string, optional): A model from agy_list_models (e.g. "Gemini 3.1 Pro (High)"). Omit for default.
add_dir (string[], optional): Absolute dirs to add to agy's workspace so it can read those files.
project (string, optional): Existing agy project ID.
new_project (boolean, default false): Create a new project for this session.
continue_conversation (boolean, default false): Continue the most recent conversation.
conversation_id (string, optional): Resume a specific conversation by ID (overrides continue_conversation).
timeout_ms (number, default 300000): Max wait in ms (1000..1800000).
Returns JSON: { "response": string, "model": string, "exit_code": number }. On failure exit_code is non-zero and response contains agy's stderr (e.g. binary not found, timeout).
Note: runs agy with --dangerously-skip-permissions so tool actions inside agy are auto-approved (required for non-interactive use). Only invoke with prompts you trust to run unattended.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model name from agy_list_models (e.g. 'Gemini 3.1 Pro (High)'). Omit for the CLI default. | |
| prompt | Yes | The prompt to send to agy. | |
| add_dir | No | Absolute directory paths to add to agy's workspace so it can read those files while answering. | |
| project | No | Existing agy project ID to run the session under. | |
| timeout_ms | No | Max time to wait for agy to respond, in milliseconds (default 300000 = 5m). | |
| new_project | No | Create a new agy project for this session instead of using the default/most-recent. | |
| conversation_id | No | Resume a specific prior conversation by its ID. Takes precedence over continue_conversation. | |
| continue_conversation | No | Continue the most recent agy conversation (adds turns to it) instead of starting fresh. |