Skip to main content
Glama

view_sheet

Render a plan sheet or cropped region to PNG for visual inspection; optionally burn in a measuring grid, committed-shape overlay, or disclosure marks before measuring.

Instructions

SEE the sheet — render the page (or a crop of it) to a PNG image. This is your eyes on the plan, so CROP, DON'T SQUINT: the render downsamples to the px budget (≤2000 long side), which on an E-size sheet is ~4 sheet pixels per returned pixel — a full-sheet render finds WHERE things are, and only a tight region crop can tell you what the linework and labels actually say. Never audit a trace or read a dimension off a full-sheet render. region is in image px — the same space as every other tool — so a feature at pixel (ix, iy) of the returned image sits at x = region_x0 + ix × (region_x1 − region_x0) / img_w (same for y), and those coordinates go straight into one_click, measure_polygon, or read_sheet_text. overlay:true burns the session's committed shapes into the render (human-affirmed ink solid red, unreviewed machine shapes dashed blue) — render again after committing to verify your geometry landed where you intended, and sanity-check what you see: a fixture-sized ring where a room should be means the seed landed inside a stall or casework; an outsized ring means the flood escaped through an opening. To MEASURE rather than guess, pass grid: a calibrated measuring grid is burned in — thin lines every 1 ft, heavy blue every 5 ft, foot labels along the crop edges, feet counted from the crop's top-left corner. Count grid cells between walls exactly like an estimator scaling a plan; never derive a dimension by eye when the grid can give it to you. grid "auto" uses the sheet's set scale; before set_scale, pass the drawing scale read off the title block as inches-per-foot — "1/4" for a 1/4" = 1'-0" plan, "3/16", "0.25". marks (#297) burns DISCLOSURE layers into the render, so what a reply names, the picture shows: pass the coordinate lists a tool disclosed — question: withheld placements (orange ?-circles), struck: rejections a counter-example or luminance gate refused (magenta struck ×), ring: reference points like the sweep's own seed (violet double ring). The colors sit deliberately off the common CAD pens so they cannot vanish into color-plotted work. An overlay audit without marks shows only committed ink — the validation trap where 37 disclosed near-misses read as "it missed them". Rendering needs the optional native canvas (@napi-rs/canvas); where it isn't installed this tool errors cleanly and every other tool still works. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

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": {
      "sheet": "<sheet>"
    },
    "name": "view_sheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
pxNoLong-side pixel budget of the returned image (default 1400) — small region + high px = readable dimension strings
gridNoBurn in a calibrated 1-ft/5-ft measuring grid: "auto" = the sheet's set scale; otherwise the drawing scale as inches-per-foot, e.g. "1/4", "3/16", "0.25"
marksNoDisclosure marks to burn into the render (#297): what the reply names, the picture shows. Coordinates in image px
sheetYes
regionNoCrop rect in image px (origin top-left, y down); omit for the full sheet
overlayNoBurn committed shapes into the render (solid = human-affirmed, dashed = unreviewed)
project_idNoThe 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.23
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / project_id
      Added value: +{
      +  "description": "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.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed16 schema fields changedv0.1.31
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / marks / additionalProperties
      Removed value: -false
    • addedInput schema / properties / marks / properties / question / items / additionalItems
      Added value: +false
    • removedInput schema / properties / marks / properties / ring / items / $ref
      Removed value: -"#/properties/marks/properties/question/items"
    • addedInput schema / properties / marks / properties / ring / items / additionalItems
      Added value: +false
    • addedInput schema / properties / marks / properties / ring / items / items
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • addedInput schema / properties / marks / properties / ring / items / maxItems
      Added value: +2
    • addedInput schema / properties / marks / properties / ring / items / minItems
      Added value: +2
    • addedInput schema / properties / marks / properties / ring / items / type
      Added value: +"array"
    • removedInput schema / properties / marks / properties / struck / items / $ref
      Removed value: -"#/properties/marks/properties/question/items"
    • addedInput schema / properties / marks / properties / struck / items / additionalItems
      Added value: +false
    • addedInput schema / properties / marks / properties / struck / items / items
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • addedInput schema / properties / marks / properties / struck / items / maxItems
      Added value: +2
    • addedInput schema / properties / marks / properties / struck / items / minItems
      Added value: +2
    • addedInput schema / properties / marks / properties / struck / items / type
      Added value: +"array"
    • removedInput schema / properties / region / additionalProperties
      Removed value: -false
  3. Changed1 schema field changedv0.1.19
    • addedInput schema / properties / marks
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Disclosure marks to burn into the render (#297): what the reply names, the picture shows. Coordinates in image px",
      +  "properties": {
      +    "question": {
      +      "description": "Open questions — withheld placements, spots to look at. Orange ?-in-circle",
      +      "items": {
      +        "items": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ],
      +        "maxItems": 2,
      +        "minItems": 2,
      +        "type": "array"
      +      },
      +      "type": "array"
      +    },
      +    "ring": {
      +      "description": "Reference points — the sweep's seed.center, an anchor. Violet double ring",
      +      "items": {
      +        "$ref": "#/properties/marks/properties/question/items"
      +      },
      +      "type": "array"
      +    },
      +    "struck": {
      +      "description": "Refusals — rejected[] placements, lum_gate.at. Magenta struck ×",
      +      "items": {
      +        "$ref": "#/properties/marks/properties/question/items"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Addedv0.1.5

TDQS

A4.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

There are no meaningful annotations beyond a title, so the description carries the full burden, and it does provide valuable behavioral context: px budget downsampling, optional native canvas dependency with clean errors, coordinate scale, overlay color semantics, grid semantics, and marks color choices. However, it does not describe output image dimensions or failure modes beyond the native canvas note, leaving some operational details unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core action and the crop-vs-full-sheet rule, and most sentences add actionable detail. It is still unusually long and rhetorical in places, but the density of useful guidance keeps it from being wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex visual-rendering tool with no output schema, the description covers prerequisites, coordinate conventions, pixel scaling, crop mapping, overlay verification, grid measurement, disclosure marks, and the optional canvas dependency. An agent has enough context to invoke it correctly and interpret the resulting image.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already high at 86%, but the description adds essential meaning beyond the schema: region is in image px and maps directly into other tools' coordinate space, px trades resolution against crop tightness, grid accepts "auto" or drawing scale in inches-per-foot, and overlay/marks encode specific visual semantics. This is exactly the kind of parameter guidance that prevents misuse.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: render the sheet page or crop to a PNG image. It frames the tool as the visual counterpart to text/measurement tools and explains what the returned image is for, so an agent can tell it apart from read-only data tools without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use guidance: full-sheet renders locate things, tight region crops reveal linework and labels, and full-sheet renders must not be used to audit traces or read dimensions. It also specifies when to pass grid for measurement, overlay for verifying committed geometry, and marks for disclosure auditing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools