write_named_query
Create or replace a named SQL query resource in an Ignition project. Define parameters and query type, with dry-run preview and confirm-gated writes.
Instructions
Create or replace a named query resource.
Args:
path: Named query path.
query: SQL text with named parameters.
parameters: Parameter definitions with name and type.
query_type: Ignition query type, normally query.
project: Project name; defaults to the active project.
confirm: Must be True to write.
dry_run: Preview the change without writing.
Returns: Write acknowledgement or a dry-run diff.
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": {
"path": "<path>",
"query": "<query>"
},
"name": "write_named_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| query | Yes | ||
| confirm | No | ||
| dry_run | No | ||
| project | No | ||
| parameters | No | ||
| query_type | No | query |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||