Skip to main content
Glama

Get canvas

get_canvas
Read-only

Retrieve the contents of a canvas file from an Obsidian vault to inspect its nodes, edges, and layout for visualization or editing tasks.

Instructions

Get canvas file contents

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": {
      "path": "<path>"
    },
    "name": "get_canvas"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to canvas file (".canvas" may be omitted)
vaultNoVault name. May be omitted when only one vault is configured; see list_vaults.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.0.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / path / description
      Previous value: -"Path to canvas file"New value: +"Path to canvas file (\".canvas\" may be omitted)"
    • addedInput schema / properties / path / minLength
      Added value: +1
    • changedInput schema / properties / vault / description
      Previous value: -"Vault name"New value: +"Vault name. May be omitted when only one vault is configured; see list_vaults."
    • changedInput schema / required
      Previous value: -[
      -  "vault",
      -  "path"
      -]New value: +[
      +  "path"
      +]
  2. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered, but the description adds nothing beyond them. It does not say what a returned canvas looks like (parsed nodes/edges vs. raw JSON), or how a missing or malformed file is handled, which is the useful context an agent would need.

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?

A single front-loaded sentence with no filler, appropriate for a simple two-parameter read tool. It is arguably over-terse rather than wasteful, so it loses only a point for leaving out anything substantive.

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

Completeness3/5

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

For a simple read-only tool with full schema coverage and annotations, the definition is minimally adequate. With no output schema, however, the description should have indicated the shape of the returned canvas contents, which is the one real gap.

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

Parameters3/5

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

Schema description coverage is 100%, and the schema itself explains that ".canvas" may be omitted and that vault can be skipped when only one is configured. The description adds no additional meaning, so the baseline of 3 applies.

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

Purpose4/5

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

"Get canvas file contents" pairs a specific verb with a specific resource, so it is clearly the read operation on a canvas file and distinct from create_canvas, list_canvas_files, and the node/edge mutators. It stops short of naming any sibling or stating whether the result is raw text or parsed canvas JSON, so it is clear but not fully differentiating.

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

Usage Guidelines2/5

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

The description gives no when-to-use guidance: nothing says to call this instead of list_canvas_files when you need a listing, or get_note for markdown notes, and no prerequisites (e.g., needing an existing path) are mentioned. Usage is only inferable from the name.

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