Delete an object from the working copy
patchwork_deleteDeletes a script, layout, value list, custom function or field from a FileMaker file, refusing when other objects reference it so you can review them before forcing removal.
Instructions
Delete a script, layout, value list, custom function or field. Refused, with the list of what references it, when other objects reference it: show that list to the user, and only then retry with force=true. With force the references are left pointing at nothing and the result lists them for review. 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>"
},
"name": "patchwork_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Kind of the object to delete. | |
| name | Yes | Exact name of the object. Table::Field for a field. | |
| force | No | Delete even when other objects reference it. Only after the user has seen the list. | |
| 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. |