go_generate
Runs go generate commands to trigger code generation, supporting directory, package, regex filters, dry-run, verbose output, timeout, and additional arguments.
Instructions
Run go generate to execute code generation directives
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "go_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | Only run generate directives matching this regex | |
| args | No | Additional arguments | |
| skip | No | Skip generate directives matching this regex | |
| dryRun | No | Print commands without running them | |
| package | No | Go package to run generate on (e.g., ./...) | |
| timeout | No | Command timeout in milliseconds | |
| verbose | No | Enable verbose output | |
| directory | No | Working directory |