get_rewrite_debug_events
Read structured rewrite-debug events, filterable by trace, phase, or severity, to debug rewrite scripts without scanning generic trace events.
Instructions
Reads the independent structured rewrite-debug event projection. Filter by trace, rewrite phase, or severity instead of scanning generic trace events.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_rewrite_debug_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Optional severity filter, for example info or warn. | |
| limit | No | Maximum number of events to return (default 200, maximum 1000). | |
| offset | No | Number of newest matching events to skip. | |
| trace_id | No | Optional HTTP trace id to inspect. | |
| event_type | No | Optional event type, for example rule_matched, mutation_applied, script_failed, or rewrite_skipped. |