sanity_patch
Partially update a Sanity document by setting, unsetting, incrementing, or decrementing fields. Requires a write token.
Instructions
Partially update a document. Requires write token.
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": {
"id": "<id>"
},
"name": "sanity_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The document ID to patch | |
| set | No | Fields to set or update | |
| unset | No | Field names to remove | |
| inc | No | Numeric fields to increment | |
| dec | No | Numeric fields to decrement |