agy
Run a prompt through a CLI agent that executes coding tasks, supports multi-turn conversations, extra workspace directories, and sandbox security. Returns responses non-interactively.
Instructions
Run a prompt through the Antigravity CLI (agy) in non-interactive print mode and return the response. Supports multi-turn continuation, extra workspace directories, sandbox, and auto-approval of tool permissions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The coding task, question, or analysis request | |
| sessionId | No | Optional session ID for multi-turn context. The first turn starts a fresh agy conversation; later turns in the same session continue it via `agy --continue`. Note: agy continues the most-recent conversation globally, so avoid interleaving sessions or manual agy usage mid-session. | |
| resetSession | No | Reset the session history before processing this request (starts a fresh agy conversation) | |
| conversationId | No | Resume a specific agy conversation by ID (e.g. one obtained from the Antigravity app). Maps to `agy --conversation <id>` and takes precedence over session continuation. | |
| continueConversation | No | Force `agy --continue` to continue the most recent conversation, regardless of session state | |
| addDirs | No | Extra directories to add to the agy workspace (maps to repeated `--add-dir` flags) | |
| sandbox | No | Run agy in a sandbox with terminal restrictions enabled (`--sandbox`) | |
| skipPermissions | No | DANGEROUS: auto-approve all tool permission requests without prompting (`--dangerously-skip-permissions`). Required for agy to use tools non-interactively, but lets it modify files/run commands unattended. | |
| printTimeout | No | Timeout for print mode as a Go-style duration (e.g. "90s", "5m", "1h30m"). Maps to `--print-timeout`. Defaults to 5m. |