Patch part of a drop
dropyour_patchReplace ONE literal anchor in the SERVED content without re-uploading everything — the Edit semantics you already know. old = the exact literal text to find; new = its replacement; occurrences (default 1) = how many times old must appear: if the real count differs, NOTHING is replaced and the refusal tells you the real count (widen the anchor, or declare the real count to replace all). Graduated apps: path selects the file of the SERVED version (default index.html); pass expectedVersion (from list_versions) and the patch is refused if the served version moved since your read — no blind overwrite. Each patch creates a normal FULL version: rollback works as always; if other apps call this one under a contract (dropyour_link), a patch that breaks one is refused and the previous version put back. Tiers 1-3: single-file drops only (a multi-file site is replaced whole); the patch goes through the ENTIRE replace pipeline — scan included, on the RESULTING document, never the fragment.
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": {
"dropId": "<dropId>",
"old": "<old>",
"new": "<new>"
},
"name": "dropyour_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes | ||
| path | No | ||
| dropId | Yes | ||
| occurrences | No | ||
| expectedVersion | No | ||
| managementToken | No |