open_context
Extract code context around specific lines in Python files to help debug test failures by showing surrounding code sections for analysis.
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": {
"path": "<path>",
"line": "<line>"
},
"name": "open_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| line | Yes | ||
| radius | No | ||
| base_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |