Edit original constant and parameter declarations
gdf_declarations_editEdit a native GDF constant or param name/value pair while keeping IDs, aliases, and geometry intact. Requires a fresh SHA-256, preview, and recoverable backup, then compiler validation.
Instructions
Edit only an existing unambiguous native CONSTANT/PARAM name/value pair. Retains native IDs, aliases, geometry, fonts and other properties. Requires both name and value, fresh hash, preview and recoverable backup. Compiler/simulator must validate expression, scope and effect.
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>",
"expectedSha256": "<expectedSha256>",
"edits": "<edits>"
},
"name": "gdf_declarations_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path within that scope. | |
| edits | Yes | Ordered collection of explicit entries validated by this tool. | |
| confirm | No | Apply when true; default preview. Current session authorization suffices. | |
| project | No | Existing ACF whose directory scopes these files. | |
| workspace | No | Workspace scope when project is absent. | |
| expectedSha256 | Yes | Current full file SHA-256 from a fresh inspection. |