gemini_code
Delegate a well-defined coding task to Gemini to read and edit files in a local project folder, then review the returned summary and changes with git diff.
Instructions
Delegate a coding task to Gemini, which reads and EDITS files in one
local folder through the Antigravity agent on the user's Google AI Pro plan
(no API cost). This changes files: tell the user, and review the result
afterwards, e.g. with git diff. Gemini can't run terminal commands here,
so run the tests yourself afterwards. Antigravity CLI 1.5 can't get approval
for file access when it runs headless. Then this tool returns agy's
explanation within about a minute and changes nothing; use jules_start
instead.
Good for a well-defined change: fix a bug, add tests, refactor a module.
For read-only questions use gemini_ask; for a task on a GitHub repo that
should end in a pull request use jules_start.
Args:
task: What to change and how to know it is done, e.g. "Add unit tests
for parse_date in utils/dates.py; all tests must pass".
folder: Absolute path of the project folder Gemini may edit.
model: Model id from gemini_models; omit for agy's default.
agent: Name of an Antigravity agent from gemini_agents to run the task.
effort: Reasoning effort: "low", "medium", "high", "xhigh" or "max".
conversation_id: Continue an earlier gemini_code or gemini_ask chat, e.g.
to ask for fixes to the previous change.
Returns:
Gemini's summary of what it changed, and a conversation_id for follow-up
requests; or an error if the folder does not exist.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>",
"folder": "<folder>"
},
"name": "gemini_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| agent | No | ||
| model | No | ||
| effort | No | ||
| folder | Yes | ||
| conversation_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |