antigravity_ask
Send a prompt to the local Antigravity CLI and receive the answer, resuming the same session and using your own subscription quota instead of the provider's.
Instructions
通过本机 Antigravity CLI(agy)跑一轮非交互提问并返回回答;默认续接同一会话。用的是 agy 已登录的 Google 账号额度(Antigravity / Gemini),不占用当前供应商的额度。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Antigravity 会话的工作目录(即它的 workspace)。 | |
| diff | No | Attach the working tree diff (captured locally with git) as context; handy for 'review my changes' without the agent having to run git itself. | |
| mode | No | Antigravity 执行模式;省略则用 CLI 默认。 | |
| agent | No | 可选的 Antigravity agent 名称。 | |
| files | No | Paths the Antigravity agent should read itself before answering, instead of pasting file contents into the prompt. | |
| model | No | Antigravity model id (see antigravity_models), or 'auto' to pick one whose quota group still has room. Default: gemini-3.8-flash-high. | |
| effort | No | 本会话的思考强度。 | |
| no_web | No | Tell the agent not to browse or use browser tools. Use it for analysis tasks: browsing costs many steps and the CLI's browser driver is often unavailable. | |
| prompt | Yes | 发送给 Antigravity CLI 的提示词(非交互 print 模式)。 | |
| handoff | No | Compact the current conversation into a handoff digest, start a NEW conversation and answer there with that digest as background. Use when the conversation has grown long. | |
| sandbox | No | 以终端受限方式运行会话(默认 true)。 | |
| session | No | Named Antigravity conversation to keep continuity across calls. Calls with the same session name resume the same conversation; use new_session to restart it. | default |
| diff_base | No | 配合 diff 指定对比的 git ref(默认 HEAD)。 | |
| extra_args | No | 追加的 agy 原始参数,原样拼接。 | |
| json_schema | No | Optional JSON schema (inline string or path) passed to the CLI with --json-schema, so the Antigravity answer is structured. Implies a per-schema session process. | |
| new_session | No | 为该会话重开一个会话,而不是续接已记录的那个。 | |
| timeout_sec | No | 等待 Antigravity CLI 的秒数上限。 | |
| conversation | No | 指定要续接的会话 id(覆盖本会话记录的那个)。 | |
| output_format | No | CLI print 模式的输出格式,原样返回。 | text |
| continue_session | No | 续接最近一次 Antigravity 会话。 | |
| skip_permissions | No | Auto-approve Antigravity tool permissions (default true). Headless runs cannot prompt for approval, so without this the agent cannot even read a file; the terminal sandbox stays on unless you disable it. | |
| disable_slash_commands | No | 不展开提示词里的斜杠命令与技能(默认 true)。 |