carrel_refs
Scan files or directories to find reference and identifier numbers such as invoice, PO, tracking, IBAN, and ISBN, then optionally tag files or group them by shared values.
Instructions
Find reference numbers (invoice, PO, order, check, account, tracking, ticket, IBAN, routing, EIN, VAT, ISBN, GTIN, DOI, UPS, USPS) in a file or directory; optionally tag files with ref:: or group files by shared value.
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>"
},
"name": "carrel_refs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | With link, include values seen in one file only. | |
| ocr | No | OCR images and scanned PDFs (needs tesseract / ocrmypdf). | |
| tag | No | Tag each file in the desk under root with ref:<kind>:<value>. | |
| link | No | Return {references: [{kind, value, files, count}]} instead. | |
| path | Yes | File or directory to scan. | |
| root | No | Desk root (default: server --root / cwd). | |
| kinds | No | Only these kinds (default: reference + identifier kinds). Known: email, phone, ssn, ipv4, cc, invoice, po, order, check, account, tracking, ticket, iban, routing, ein, vat, isbn, gtin, doi, ups, usps. | |
| patterns | No | Extra NAME=REGEX kinds; a (?P<v1>…) group is the value. |