run_hunting_query
Execute a saved hunting query against a workspace to retrieve up to 1,000 rows for security investigation.
Instructions
Run one hunting query from list_hunting_queries against a workspace. Results are capped at 1,000 rows.
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": {
"workspaceId": "<workspaceId>",
"queryId": "<queryId>"
},
"name": "run_hunting_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queryId | Yes | ID from list_hunting_queries. | |
| timespan | No | ISO 8601 duration back from now (P7D, PT12H), or an interval: start/end (2026-10-01T00:00:00Z/2026-10-02T00:00:00Z) or start/duration (2026-10-01T08:00:00Z/PT6H). Times need Z or an offset. Default P7D. | P7D |
| workspaceId | Yes | Workspace ID (GUID) or the workspace's full ARM resource ID; list_workspaces returns both. |