Find what elsewhere in the folder says the same
folio_relatedFind passages in other documents that restate a decision or cover the same ground as a page block or a question, using local embeddings and only where a related section declares them.
Instructions
Find the blocks of other documents closest in meaning to one block of a page, or to a question in your own words - passages that restate a decision or cover the same ground, whether or not anything links them. Folio works this out with a small embedding model on the reader's machine, only for documents below a FOLIO.md whose related section asks for it. Take the block's id from folio_document; a short structural line or a block repeated word for word across documents answers no blocks. For links between documents use folio_query over folio.links. Answers {asked: false} where no declaration asks; else {asked: true, state: {status: installing, downloading, indexing, ready or failed, done, total, message}, related: [{path, block, lines: [first, last], title, text: the block's words, closeness: the cosine of the two vectors, higher is closer}], version}; only status ready answers blocks, so while indexing ask again shortly. A list cut to fit one answer adds omitted, the entries each list left out, and narrow, how to ask for less.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "folio_related"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The page's path, relative to the served folder or absolute under it, such as notes/plan.md; omit with question | |
| block | No | The block's id, 8 hex characters, as folio_document lists it | |
| source | No | The file the block's text comes from when an include brings it onto the page; omit for the page's own blocks | |
| question | No | Words to find the closest blocks to instead of a block |