Read a shared code module
r3_module_readRead one shared code module: its code, its version (the baseVersion r3_module_write needs), the latest version, its notes, and how many of this account's projects use it. Your own module by name; someone else's PUBLIC module by moduleId. version reads an older version.
A long module is read in PAGES (at most 60000 characters each): every answer gives totalChars, the sha256 of the WHOLE code, and truncated / nextOffset. When truncated is true you have only part of it: read on with the same name, the version answered and offset = nextOffset, join the pages, and check the sha256 before you write it back (half a module written back deletes the rest).
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": "r3_module_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Your module's name, e.g. "ship-core". | |
| length | No | How many characters to read at most (default and maximum 60000; 8000 in an R3 Builder session). A page ends on a whole line when it can. | |
| offset | No | Where to start reading, in characters (default 0). For the next page pass the nextOffset of the previous answer. | |
| version | No | A version to read (default: the latest). Pass it when reading the next page. | |
| moduleId | No | Instead of name: a module id (someone else's public module). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| name | Yes | ||
| notes | Yes | ||
| owner | Yes | ||
| yours | Yes | ||
| answer | Yes | This answer in words: what was done, what R3 measured, decided or refused, and what to do next. The same text as the result's text block. Read it: the fields beside it are the data, this is the guidance. | |
| length | Yes | ||
| offset | Yes | ||
| sha256 | Yes | ||
| version | Yes | ||
| isPublic | Yes | ||
| moduleId | Yes | ||
| createdAt | Yes | ||
| createdBy | Yes | ||
| truncated | Yes | ||
| nextOffset | Yes | ||
| totalChars | Yes | ||
| description | Yes | ||
| latestVersion | Yes | ||
| usedInProjects | Yes |