Edit draft content
edit_draft_contentChange products, collections, pages, articles, blogs and their metafields in a Fudge draft with sparse patches, many items in one call.
Name only the fields you change; nested objects such as seo merge per key.
Rows with an "id" (variants, options, media) merge by id; omit "id" to add a row; {"id": …, "_delete": true} removes one. Variants and media live at .entities/product/{id}/variants.jsonc and media.jsonc.
Lists such as tags take a full array or {"add": […], "remove": […]}.
Metafields: .entities/product/{id}.metafields with {"namespace.key": {"type": …, "value": …}}; "value": null removes one. Changes to existing items are staged for the merchant’s review. Items the draft created change in Shopify at once.
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": {
"draft": "<draft>",
"edits": "<edits>"
},
"name": "edit_draft_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | Yes | The draft’s fudge://project/… ref. | |
| edits | Yes | ||
| store | No | The connected store to use. Omit when only one is connected. |