create_named_query
Creates a named SQL query resource in an Ignition project using a path, query text, and parameters; supports dry-run previews and confirmation before writing.
Instructions
Create a named query resource.
Args:
path: Named query path, e.g. Production/GetCounts.
query: SQL text with named parameters such as :line.
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": "create_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 | |||