lbb_files
List and read graph files, including parsed PDF pages with line text and coordinates, filtered by name or parse status.
Instructions
Files of the graph, read only. A file is a document the graph holds (its bytes and a Document entity). A file a workflow run wrote (a generated file, with an origin and an expires_at) has no Document and no Document IRI. It expires unless a person keeps it, so the list shows it only after that, and it is never evidence for a fact. The documents.parse workflow (lbb_workflows) reads the text layer of each PDF into pages with every line and its box. list shows 50 files a call, newest upload first, with their sha256, name, size, Document IRI and parse (status parsed, unsupported or failed, page_count); when more follow, next names the after of the next call (with the same filters). parse_status keeps the files of one parse status; waiting is a file not parsed yet. name keeps the files whose name holds a text, in any case. A filtered list reads the Documents of the published generation and names its commit (as_of_commit_seq). A file uploaded, renamed or parsed a moment ago can be missing from it until publication. pages reads parsed pages of one file (sha256, or name for an exact file name): from is the first 0-based page index (the page of a region and of a DocEntry or DocMention), to the page after the last one (default from+1). Each line comes as <line id> [x0,y0,x1,y1] <text>: the id is p-l, both from 1, and the box is normalized to the page (0 to 1, origin top left). contains keeps the lines that hold a text; max_lines caps the lines (default 200). When lines were left out, next names the from and line_offset of the next call. A file not parsed yet answers file_not_parsed.
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": {
"action": "<action>"
},
"name": "lbb_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | pages: the page index after the last one. Default from+1; at most 50 pages per call. | |
| from | No | pages: the first page index, 0-based. Default 0. | |
| name | No | list: only the files whose name holds this text, in any case. pages: the file's exact name, when you do not have its sha256. | |
| after | No | list: the next 50 files, from a previous call's next (pass the same parse_status and name). | |
| graph | No | Graph to target; defaults to the connection's graph | |
| action | Yes | ||
| detail | No | Response detail level. Defaults to compact. | |
| sha256 | No | pages: the file's SHA-256 (64 hex characters). | |
| contains | No | pages: only the lines whose text holds this, ignoring case. | |
| max_lines | No | pages: the most lines to return. Default 200. | |
| line_offset | No | pages: lines of the first page to skip, from a previous call's next. | |
| parse_status | No | list: only the files of this parse status; waiting is a file not parsed yet. |