embed_ledger
Writes a new copy of a rendered HTML work with each located claim anchor linked to its evidence and an Evidence section or side panel for viewing claim cards; unlocated anchors are listed.
Instructions
Write a copy of the work's HTML (work, rendered by Quarto, Pandoc or any tool) with each
claim's anchor marked and linked to its evidence, to a new file. Both layouts end with an
"Evidence" section holding one card per claim; a button switches the reader between that
section and a side panel that opens the clicked claim's card (a bottom sheet on narrow
screens), and layout picks the view shown first; if no anchor is located, panel falls
back to endnotes and the result's layout says so.
Anchors that are only a marker, not found in the text or overlapping another claim's marked
text are listed under "Not located in the work" and returned in not_located (overlapping
maps a claim to the one it overlaps); a record key links to #ref-<key> when the work has
that bibliography entry. Levels and the publication check work as in summarize_ledger, and
out is never overwritten and must be in the work's folder. A full result holds whole
quotes: keep it private.
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": {
"path": "<path>",
"work": "<work>",
"out": "<out>"
},
"name": "embed_ledger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | Yes | ||
| path | Yes | ||
| work | Yes | ||
| level | No | full | |
| layout | No | endnotes | |
| include_withdrawn | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |