query
Send a prompt to GitHub Copilot and receive the model's response, using your existing Copilot CLI credentials. Supports file and image attachments.
Instructions
Send a prompt to GitHub Copilot and return the response. Uses logged-in Copilot CLI credentials automatically.
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": {
"prompt": "<prompt>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model to use (e.g. gpt-5, gpt-5.3-codex, claude-sonnet-4.5). Defaults to Copilot default. | |
| prompt | Yes | The prompt to send to Copilot | |
| attachments | No | File or image attachments to include with the prompt |