Export Detection
export_detectionExport a detection rule as raw Splunk, KQL, or Sigma query text, or retrieve the full detection object as JSON.
Instructions
Export one detection rule in a specific format. format=spl|kql|sigma returns the raw query text for that flavor; format=json returns the full detection object.
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": {
"detection_id": "<detection_id>",
"format": "<format>"
},
"name": "export_detection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | spl, kql, sigma, or json | |
| detection_id | Yes | Detection ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | ||
| content | No | Rule text for spl/kql/sigma. For format=json the detection object is returned directly instead. | |
| available | No | ||
| detection_id | No |