Skip to main content
For most queries, follow this progression:
  1. DiscoverQuery with entity: "project" to find the right project, then entity: "drawing" to see what’s uploaded
  2. ExploreQuery with entity: "sheet" to browse sheets and their block structure
  3. SearchSearch for natural language queries, Ask for direct questions
  4. Drill downQuery with entity: "block" for OCR, metadata, overlays; entity: "feature" for rooms, doors, symbols
  5. VisualizeViewImage to convert storage URIs to viewable URLs
  6. CompareCompare to diff revisions, Parse to extract features, PollJob to poll
If the user already provides a project ID or sheet number, skip the discovery step.

Prompt Tips

Be specific about sheet numbers

The agent performs better with explicit sheet references. Discipline codes and sheet numbers eliminate ambiguity.

Use discipline codes

When referring to trades, use standard discipline codes. The agent maps these directly to the discipline filter.

Ask for one thing at a time

Multi-part questions (“count receptacles on E-201 AND check fire ratings on A-101”) often produce better results as separate prompts. Each focused question maps to a clean tool call sequence.

Context Management

Use progressive disclosure

Do not request heavy data unless needed. The include parameter controls token cost.
Returns block summaries with relations. Low token cost.
A good pattern: start with the default response, let the agent read relations and metadata to understand the data structure, then selectively request include fields only for the specific blocks that need them.

Let pass-through filters do the work

Instead of resolving entity IDs manually, use pass-through filters to skip round-trips:
Available pass-through filters:
  • entity: "block": sheet_number, drawing_id
  • entity: "feature": sheet_number, block_type, block_identifier, grid_intersection

Error Handling

All tools return errors in a consistent shape:
The credits_exhausted error only applies to the Compare and Parse tools. The Query, Search, Ask, ViewImage, and PollJob tools do not consume credits.

Performance Tips

Batch feature queries by sheet

When analyzing multiple feature types on the same sheet, combine them into fewer calls:
Then filter in the agent’s reasoning rather than making separate calls for each feature type.

Use grid_intersection for cross-discipline queries

Instead of querying each discipline separately and correlating results manually, use the Query tool’s grid_intersection filter:
This returns features from all disciplines at that grid location in a single call. The backend handles the spatial math.

Sort comparison results by score

After a comparison completes, the PollJob results include a score for each overlay. Lower scores indicate more changes. Focus on low-score sheets first:
Drill into the A-101 overlay first with Query with entity: "block" and include: ["overlays", "changes"].

Next Steps

Tools Reference

Full parameter documentation for all seven tools.

Workflow Examples

See complete tool call sequences for real construction queries.