format_ignition_script
Format and normalize Ignition script code in memory, with dry-run diff previews and confirmation before returning the formatted body for safe review or targeted writes.
Instructions
Preview or produce a normalized Ignition script body.
This tool formats an in-memory string; it does not write a project file. A confirmed result can be passed to a targeted write tool, which performs the snapshot and read-back.
Args:
code: Script source.
context: One of :data:SCRIPT_CONTEXTS.
indent_unit: auto, tab, 2 or 4.
dry_run: Return a diff instead of the formatted string.
confirm: Must be True to return the formatted string when not dry-running.
Returns: A diff preview, a confirmation request, or the formatted code.
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": {
"code": "<code>"
},
"name": "format_ignition_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| confirm | No | ||
| context | No | perspective_event | |
| dry_run | No | ||
| indent_unit | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||