get_search_results
Fetch search job results, either raw log messages or aggregated records, with pagination using offset and limit.
Instructions
Fetch results from a search job.
Use 'messages' for raw log lines. Use 'records' for aggregated results (queries with count, sum, avg, group by, etc.). Supports pagination via offset and limit.
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": {
"job_id": "<job_id>"
},
"name": "get_search_results"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of results to return | |
| job_id | Yes | Search job ID | |
| offset | No | Starting index for pagination | |
| result_type | No | Type of results: 'messages' for raw logs, 'records' for aggregated results | messages |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |