Replace a whole object with edited XML
patchwork_replaceReplace an entire layout, theme, value list or custom function with edited XML to make bulk changes in FileMaker files, creating a new reversible version.
Instructions
Replace a whole layout, theme, value list or custom function with edited XML. Get the XML from patchwork_show, edit it, and send all of it back: anything you leave out is lost. Use it when no specific tool fits; prefer patchwork_place_field, patchwork_retheme and patchwork_recolor_layouts for what they cover. Scripts go through patchwork_set_steps. 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": {
"kind": "<kind>",
"name": "<name>",
"xml": "<xml>"
},
"name": "patchwork_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The whole object as XML. For a layout, the whole <Layout> block: a lone layout object is skipped. | |
| kind | Yes | Kind of the object to replace. | |
| name | Yes | Exact name of the existing object to replace. | |
| 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. |