Query a channel
query_channelRun a retrieval-augmented query against a channel's indexed knowledge base and return a generated answer with citations. Maps to POST /v1/query. Requires the key's query scope and access to the channel. Charged: $0.02 flat per call by default. Prices are the service defaults; quote returns the exact price.
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": {
"channel_id": "<channel_id>",
"query": "<query>"
},
"name": "query_channel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The natural-language question. | |
| top_k | No | Chunks to retrieve (default 5). | |
| channel_id | Yes | Channel to query. The key must be scoped to it. | |
| session_id | No | Optional session for multi-turn continuity. | |
| source_types | No | Restrict retrieval to these source types. | |
| idempotency_key | No | Idempotency-Key for safe retries. |