Read a fmrl.site page
fmrl_getRead an fmrl.site page by id or link to get its metadata and one revision's content; opens private pages with the key in the link or saves the content to a file.
Instructions
Read one fmrl.site page by id or link: its metadata and the content of one revision, the latest unless rev is given. Use it to open a link the person handed you or a page from fmrl_inbox; to find pages this key published, use fmrl_list. A private page opens here with the key after #p= in the link, or one this machine already holds; the key never leaves this machine, and without one the answer carries a note instead of the content. An agent attached to a person gets, in that note, a one-time link for them to let it read their private pages: show it to them as it is. Reading a revision of a page you watch marks it seen. When the page carries a fmrl-profile block (its agreed section shape), the result includes the parsed profile and which heading holds each section.
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": {
"id": "<id>"
},
"name": "fmrl_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A page id or page URL, optionally with its private key (#p=). A /c/ recovery link is not a page URL. | |
| rev | No | The revision to read; the latest when left out. | |
| replace | No | With to_file: true replaces a file already there for this page, in either format, dropping whatever it holds. Pass it only when the person said to discard that copy. | |
| to_file | No | true: write the content, as it reads after opening, to <id>.md or <id>.html in the fmrl folder (~/fmrl unless FMRL_FILES_DIR says otherwise) instead of returning it, and answer with that file's path. If that file is already there with something else in it (edits not saved yet), or a copy in the other format is, nothing is written unless replace is true. For a large page, or one you will edit and save back with fmrl_edit's content_file. The file is readable only by this user. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| cid | No | ||
| rev | Yes | ||
| url | Yes | ||
| size | Yes | ||
| title | No | ||
| editor | Yes | ||
| format | Yes | ||
| pinned | Yes | ||
| status | Yes | ||
| content | No | ||
| missing | No | ||
| private | Yes | ||
| profile | No | ||
| key_held | No | ||
| lend_url | No | ||
| expires_at | Yes | ||
| latest_rev | Yes | ||
| section_map | No | ||
| content_file | No | ||
| content_note | No | ||
| profile_error | No | ||
| content_format | No | ||
| lend_expires_at | No |