invariance_saved_view_create
Create a persistent saved query view over executions, events, runs, nodes, or captures. Set a name, source, and query spec with filters, aggregations, and ordering to build reusable views for monitoring or debugging.
Instructions
Create a saved query view over executions/events/runs/nodes/captures.
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": {
"name": "<name>",
"source": "<source>",
"spec": "<spec>"
},
"name": "invariance_saved_view_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| viz | No | ||
| name | Yes | ||
| spec | Yes | QuerySpec as a JSON object string. Fields (all optional): fields (string[]), filters ([{"field","op":"eq|neq|in|gt|gte|lt|lte","value"}]), group_by (string), aggregation ("count|sum|avg|min|max|count_distinct"), aggregation_field (string), order_by (string), order_dir ("asc|desc"), limit (int). Example: {"filters":[{"field":"status","op":"eq","value":"open"}],"aggregation":"count"} | |
| source | Yes | ||
| visibility | No |