find_text
Locate room numbers, labels, and note fragments by searching a sheet's text layer, returning exact bounding boxes and centers; falls back to OCR words on scanned pages.
Instructions
Search a sheet's TEXT LAYER — deterministic locate, no vision. Room numbers and labels on a CAD-exported plan are text with exact positions; this finds them by lookup instead of hunting a raster. Returns each match's normalized bbox and center. On a scanned page with no text layer it searches the plan index's OCR words instead (text_source:'ocr'; check digits on a crop). count: 0 for text you can SEE in a render = no text layer and no OCR hit. Also takes the open-source OpenTakeoff server's arguments (sheet, region): sheet keys or numbers, image px at render scale 2, finish tags.
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": {
"q": "<q>",
"sheet": "<sheet>"
},
"name": "find_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | text to find — a room number ('116'), label ('RECEPTION'), or note fragment; case-insensitive | |
| limit | No | max matches (default 200) | |
| sheet | Yes | A sheet key ("plan.pdf#2") or sheet number ("A-101"); sheet_id is accepted in its place. | |
| region | No | Rect in image px (origin top-left, y down); omit for the full sheet | |
| sheet_id | No | sheet key — any page of an uploaded source (same as sheet; give one) | |
| project_id | No | The project to work on (list_projects names them). Optional for the open-source arguments: the project the last call named (load_plan makes one) is used. |