agda_infer_in_goal
Infer the type of an expression within a goal's local context, using locally-bound variables, to type-check Agda code during proof development.
Instructions
Infer the type of an expression in the context of a specific goal.
Unlike agda_infer which works at top level, this infers within a goal's local context (with access to locally-bound variables).
Args: file_path: Absolute path to the .agda file goal_id: The goal/hole number (from agda_load output) expr: The expression to type-check
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>",
"expr": "<expr>"
},
"name": "agda_infer_in_goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | Yes | ||
| goal_id | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |