Read draft file
read_draft_fileRead a file in a Fudge draft: a theme file, a theme folder listing, or a content document under .entities (list with .entities/product?query=…). Lines are numbered; long files return line_offset. Theme files return a revision. Append #info to see where a theme file is used.
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>"
},
"name": "read_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. | |
| store | No | The connected store to use. Omit when only one is connected. | |
| line_limit | No | Lines to return. Omit to read up to the limit. | |
| char_offset | No | Character offset within a very long first line, only when the result says to continue with one. | |
| line_offset | No | 0-based line to start from, from a previous read. |