Add steps at the end of a script
patchwork_append_stepsAppend new steps to the end of an existing FileMaker script while keeping its current steps intact. Use it instead of set_steps when no existing step changes; creates a new reversible version.
Instructions
Add steps at the end of an existing script and keep the steps it has. Use it instead of patchwork_set_steps when no existing step changes. The whole script is re-read, and the version is dropped with an error if a step came back different. To create the script, use patchwork_add_script. Makes a new version; patchwork_undo reverses it.
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": {
"script": "<script>",
"steps": "<steps>"
},
"name": "patchwork_append_steps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | One step per line, as FileMaker shows them: Set Variable [ $n ; Value: 1 ], If [ $n > 0 ], Show Custom Dialog [ "Title" ; "Message" ; Buttons: "OK", "Cancel" ], End If, # comment. Or <Step> XML. | |
| script | Yes | Exact name of the script that gets the steps. | |
| dry_run | No | Only write the patch file to .patchwork/ and return its path. Nothing is applied, no version is made. | |
| message | No | What this change does, kept in the version log. Default: a short description of the change. |