Get template HTML
get-template-htmlReturns the content of a template serialised as HTML.
Use this tool when:
You want to read or navigate the content of a template
You want to understand the structure of a template before editing it
The HTML uses semantic data-* attributes for fynk-specific nodes. Addressable nodes (paragraphs, headings, etc.) carry a data-uuid attribute that can be used to target them in subsequent operations.
Numbered clauses are ordered list nodes,
<div data-list data-kind="ordered">, holding the clause text and any nested sub-clauses. Their computed number is shown read-only indata-number(e.g. "1.1."); numbers are never part of the text.<span data-section-ref data-uuid="...">is a cross-reference to the list node with that data-uuid, rendering its computed number.<span data-dynamic-field data-ref-uuid="...">is a dynamic field (fill-in placeholder).<span data-party data-ref-uuid="..." data-format="...">renders a party's name, reference name or address, as data-format says.<div data-signatures>is a signature container, holding one<span data-signature-block data-ref-uuid="...">per signature block.Images, dynamic tables and signing vote blocks appear as empty reference tags; their contents are held outside the HTML.
Text formatting is stated inline as style. Block alignment is stated as
data-text-align; a block's margins, indent and line height are not in the HTML.
get-template-info resolves the ref_uuids of dynamic fields, parties and signature blocks.
Only available for templates with a prosemirror_data content type. Returns an error for PDF templates.
For the full format, e.g. when interpreting clause numbering or preparing a rewrite, read the fynk://articles/working-with-template-content resource.
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": {
"template_uuid": "<template_uuid>"
},
"name": "get-template-html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_uuid | Yes | UUID of the template to render as HTML |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | The template content serialised as HTML. Fynk-specific nodes use data-* attributes (e.g. data-dynamic-field, data-party, data-signatures). Addressable nodes carry a data-uuid attribute. |