Skip to main content
Glama

Add canvas node

add_canvas_node

Add a file, text, link, or group node to an Obsidian canvas at specified coordinates and dimensions.

Instructions

Add a node to canvas (file, text, link, or group)

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": {
      "canvasPath": "<canvasPath>",
      "nodeType": "<nodeType>",
      "x": "<x>",
      "y": "<y>",
      "width": "<width>",
      "height": "<height>"
    },
    "name": "add_canvas_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesX coordinate
yYesY coordinate
urlNoURL (for link nodes)
fileNoFile path (for file nodes)
textNoText content (for text nodes)
colorNoColor: preset "1"-"6" or hex such as "#ff0000"
labelNoLabel (for group nodes)
vaultNoVault name. May be omitted when only one vault is configured; see list_vaults.
widthYesNode width
heightYesNode height
subpathNoHeading or block inside the file, e.g. "#Heading" (for file nodes)
nodeTypeYesType of node
canvasPathYesPath to canvas file (".canvas" may be omitted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv2.0.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / canvasPath / description
      Previous value: -"Path to canvas file"New value: +"Path to canvas file (\".canvas\" may be omitted)"
    • addedInput schema / properties / canvasPath / minLength
      Added value: +1
    • changedInput schema / properties / color / description
      Previous value: -"Node color (1-6)"New value: +"Color: preset \"1\"-\"6\" or hex such as \"#ff0000\""
    • addedInput schema / properties / height / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / subpath
      Added value: +{
      +  "description": "Heading or block inside the file, e.g. \"#Heading\" (for file nodes)",
      +  "type": "string"
      +}
    • 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."
    • addedInput schema / properties / width / exclusiveMinimum
      Added value: +0
    • changedInput schema / required
      Previous value: -[
      -  "vault",
      -  "canvasPath",
      -  "nodeType",
      -  "x",
      -  "y",
      -  "width",
      -  "height"
      -]New value: +[
      +  "canvasPath",
      +  "nodeType",
      +  "x",
      +  "y",
      +  "width",
      +  "height"
      +]
  2. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations declare this is a non-read-only, non-destructive mutation, which is the baseline an agent needs. The description adds nothing beyond that: it does not say whether the canvas is created if missing, whether coordinates must lie within existing bounds, whether overlapping nodes are allowed, or what the call returns. For a 13-parameter write operation this is a thin disclosure.

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

Conciseness3/5

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

A single short phrase with zero wasted words and the core action front-loaded, which is good. However, the brevity shades into under-specification rather than economy, and there is no structure to help an agent map node types to the fields they require.

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

Completeness2/5

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

With 13 parameters, six required, and no output schema, the description carries real burden and does not meet it. It never explains the conditional requirements of the schema (url for link, file/subpath for file, label for group) or any failure modes, so an agent must reverse-engineer the call from the schema alone.

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%, so every parameter is already documented at the field level, giving a baseline of 3. The description's enumeration of file/text/link/group merely restates the nodeType enum and adds no cross-parameter semantics, such as which fields become required for each node type.

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?

The description states a specific verb and resource ("Add a node to canvas") and enumerates the node kinds it can create, so the agent knows exactly what operation is performed. It does not distinguish itself from the plausible sibling add_canvas_edge, leaving the node-vs-edge choice to be inferred from the name alone.

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?

There is no guidance on when to use this versus add_canvas_edge, get_canvas, or create_canvas, and no stated preconditions such as the canvas already existing. The parenthetical list of node types is a capability note, not usage guidance.

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