complete_code
Get code completions for a programming language and sentence. Specify language (C# or Py) and the sentence to complete, with an optional response size limit to control output length.
Instructions
Show the code completion for a specific text input.
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": {
"model": "<model>"
},
"name": "complete_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | State of the code completion. | |
| version | No | Version of the response. | |
| payload | No | Code completion suggestions. | |
| payloadType | No | Type of the payload. |