agda_refine_or_intro
Refines an Agda goal with a given expression, or introduces a constructor or lambda when none is provided, choosing the best action automatically.
Instructions
Refine or introduce in a goal (auto-chooses the best action).
Combines refine and intro: tries to refine with the expression if given, otherwise introduces a constructor or lambda. 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 for intro)
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_or_intro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | No | ||
| goal_id | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |