agda_refine
Refine a goal in an Agda file by filling it with an expression, which may generate new subgoals. Specify the file path and goal ID to apply the refinement.
Instructions
Refine a goal by filling it with an expression that may create new subgoals.
If expr is empty, Agda tries to refine using the goal type. Call agda_load afterwards to refresh goals.
Args: file_path: Absolute path to the .agda file goal_id: The goal/hole number (from agda_load output) expr: Expression to refine with (can be empty)
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": {
"file_path": "<file_path>",
"goal_id": "<goal_id>"
},
"name": "agda_refine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | No | ||
| goal_id | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |