gemini_task
Runs a named .zwilling/tasks template with optional instructions, files, and git diff for read-only Gemini analysis or second opinions without tool access.
Instructions
Run a named task template from .zwilling/tasks/.md in the project (e.g. explain, test-ideas, migration-plan), with optional extra instructions, files and diff. Gemini still has no tool access. No task templates found in this project yet.
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>"
},
"name": "gemini_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Attach a git diff: "staged" (index vs HEAD), "working" (unstaged), "HEAD" (all uncommitted changes), a ref, or a range like "main...HEAD". Counts against the size limit. | |
| task | Yes | Template name, read from .zwilling/tasks/<task>.md (letters, digits, - and _). | |
| files | No | Paths relative to the project root (max 20 files, 500 KB total). Also accepts line ranges (src/a.ts:40-120), directories (src/) and globs (src/**/*.ts); globs and directories respect .gitignore. Contents are inlined into the prompt. | |
| model | No | Model ID as listed by `agy models`; the suffix is the reasoning effort, e.g. gemini-3.8-flash-low | -medium | -high. Omit to use the configured default (.zwilling.json, else agy's). Higher effort is slower. | |
| timeout_s | No | Timeout for this call in seconds (default 120). | |
| instructions | No | Extra instructions appended to the template. |