Back to zzTakeoff Community Channel LogoFeature Requests

Pages.extractText hangs the browser tab during MCP run_script

What happens. On some pages, Pages.extractText(pageId) falls back to OCR and runs for more than 90 seconds. The run_script call then times out, but the work keeps running in the tab. After that, every later MCP call fails with "No zzTakeoff browser tab responded" until the user refreshes the tab (thus my takeoff did not finish overnight.errrrrrrrrr, sad day). This happened 7 times on project In Wichita on Dec 1. Vector pages return in about 20–200 ms. Scanned or raster detail sheets take seconds to minutes.


What we're asking for:

  1. A timeout option on Pages.extractText, for example {timeoutMs}, or a text-layer-only mode that never runs OCR.
  2. A page flag such as hasTextLayer or isRaster, so scripts can skip OCR pages before calling.
  3. When run_script times out, cancel the work in the tab so the tab doesn't stay stuck.
  4. Cache OCR text per page, so a second call returns instantly.
  5. Nice to have: read access to a page's vector linework, so lines can snap to the drawing.
You must be logged in to post replies. If you don't have an account you can signup here.