export_incidents
Bulk export filtered incidents to a local CSV or Excel file. Apply status, severity, tag, and keyword filters, then save results with duplicate-safe filenames for reporting and analysis.
Instructions
Bulk export incidents to a spreadsheet file (CSV or Excel) saved locally. Supports many of the same filters as list_incidents (status, severity, tags, etc.). CSV supports UTF-8 or Shift-JIS encoding; Excel is always Unicode. If format is omitted, it is inferred from outputPath (.xlsx → xlsx, otherwise csv). Files are saved as incidents-YYYY-MM-DD. (same as Twinpower UI). Existing files are never overwritten — duplicates become "incidents-YYYY-MM-DD (1).". Returns the saved file path, byte size, content type, and resolved format.
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": {
"outputPath": "<outputPath>"
},
"name": "export_incidents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Keyword search (name/status/source). | |
| tag | No | Filter by general tags (AND semantics: incident must have all listed tags). | |
| lang | No | Column-header language. Default: en. | |
| format | No | File format. When omitted, inferred from outputPath (.xlsx → xlsx, else csv). If set, must match a .csv/.xlsx extension when one is present. | |
| sortBy | No | Sort field (createdAt, updatedAt, name, status, severity, category, occurredAt). | |
| status | No | Filter by one or more statuses (e.g. ongoing, resolved). | |
| sortDir | No | Sort direction. Default: desc. | |
| category | No | Filter by category (system, security, operational). | |
| encoding | No | CSV byte encoding (ignored for xlsx). Default: utf8. | |
| severity | No | Filter by one or more severity levels (1-5). | |
| serviceId | No | Filter by affected service id. | |
| outputPath | Yes | Destination directory or a sample file path used to choose the directory and format (e.g. "~/Downloads" or "~/Downloads/incidents.xlsx"). The actual filename is incidents-YYYY-MM-DD.<ext>; if that file already exists, a " (n)" suffix is added. | |
| hasNarrative | No | Include summary/timeline/postmortem columns. Default: false. | |
| declareSource | No | Filter by declared source. | |
| includeDrills | No | Include drill (exercise) incidents. Default false. |