get_completions
Retrieve Python code completion suggestions at a specific cursor position to help developers write code more efficiently by providing relevant options based on context.
Instructions
Get code completions at a specific position.
Returns available completions at the given cursor position.
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": {
"code": "<code>",
"position": "<position>"
},
"name": "get_completions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python code as string. | |
| position | Yes | Character position (0-indexed) in the code. | |
| python_path | No | Optional path to Python interpreter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||