Skip to main content
Glama

Change what the person sees

canvas-view
Read-only

Change what the person sees in their canvas (never the artifact itself). action picks what, and takes the parameters listed with it:

  • select [ids required]: Set the selection to these node ids (highlights them for the user).

  • goto_page [pageId required]: Switch the editor to a page.

  • zoom_to [target required]: Move the user's camera: a node id, 'selection', or 'fit' (all page content). End a task by showing your work.

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": {
      "sessionId": "<sessionId>",
      "action": "<action>"
    },
    "name": "canvas-view"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoselect: Node ids
actionYesOne of: select, goto_page, zoom_to.
pageIdNogoto_page: Page id
targetNozoom_to: Node id | 'selection' | 'fit'
sessionIdYesThe artifact's id (its sessionId), from canvas-get_open or workspace-list_artifacts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description's added value is the explicit statement that only the user's view changes and never the underlying artifact, which is precisely the distinction an agent needs to trust this tool mid-task; it does not cover persistence of the selection/camera or any user-visible interruption, so it falls short of a 5.

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

Conciseness5/5

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

Two lines: a front-loaded purpose sentence plus a tight bullet-per-action list. Every bullet adds an actionable detail, and the closing hint about ending a task with 'zoom_to' is short and earns its place.

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

Completeness4/5

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

For a 5-parameter, view-only tool with no output schema and full annotation coverage, the definition covers all three actions, their required parameters, and the sessionId source is handled in the schema. The only residual gap is what happens on invalid ids or pages and whether prior selection/camera state persists, which is minor for a non-mutating tool.

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

Parameters4/5

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

Schema coverage is 100% and the schema already names each parameter per action, so a baseline of 3 would be defensible. The description still earns a bump by adding meaning the schema does not: 'select' highlights the ids for the user, and 'fit' means all page content rather than a node id. Required-vs-optional per action is also restated in prose, which makes the conditional parameter contract easier to follow.

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 target ('Change what the person sees in their canvas') and immediately excludes the confusing alternative interpretation with '(never the artifact itself)'. The three allowed actions are enumerated with one-line semantics, so an agent can distinguish this from mutating siblings like canvas-update_nodes or canvas-replace_html without opening any schema.

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

Usage Guidelines4/5

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

Each action carries an implicit usage rule ('select' to highlight node ids, 'goto_page' to switch the editor, 'zoom_to' to move the camera), and it adds task-level guidance: 'End a task by showing your work.' The parenthetical exclusion of artifact mutation also tells the agent when not to use it, but no sibling tool is named as the alternative for content changes, leaving that inference to the agent.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.