Edit draft file
edit_draft_fileChange part of a theme file or .entities document in a Fudge draft by replacing exact text, without line numbers. Fudge validates the result and refreshes the preview.
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>",
"path": "<path>",
"edits": "<edits>"
},
"name": "edit_draft_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A theme file such as sections/main-product.liquid or templates/product.json, or a content document such as .entities/product/123.jsonc or .entities/page/45.body.html. | |
| draft | Yes | The draft’s fudge://project/… ref. | |
| edits | Yes | ||
| store | No | The connected store to use. Omit when only one is connected. | |
| revision | No | The revision returned when this file was read. |