Skip to main content
Glama

get_design_context

Read-only

Explore large Figma files by retrieving a token-efficient node tree from a given node, selection, or current page. Control depth, detail level, and collapse repeated component instances.

Instructions

Get a depth-limited, token-efficient node tree for exploring large files — prefer this over get_document. Starts from nodeId, else the current selection, else the current page. depth limits child levels (omit or 0 = unlimited). detail is minimal / compact / full. dedupeComponents collapses repeated component instances (children of an already-seen main component are omitted and flagged deduped). A deduped instance still carries textOverrides — the visible text it renders ({ name, characters }) — so per-instance content (card titles, list items, form labels) is available without re-expanding the collapsed subtree.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthNoMax child levels to include; omit or 0 for unlimited
detailNoHow much per-node data: minimal / compact (default) / full
nodeIdNoRoot node id; omit to use the selection or current page
dedupeComponentsNoCollapse repeated instances of the same main component
Behavior5/5

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

The description thoroughly explains behavioral traits beyond the readOnlyHint annotation, including depth-limiting, token-efficiency, deduplication of components, and how textOverrides are preserved in deduped instances. This is highly transparent.

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 relatively long but each sentence adds value. It is front-loaded with the main purpose. Could be slightly more concise, but the information density is high and well-organized.

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?

Given the 4 parameters and no output schema, the description provides sufficient context about tool behavior and parameter effects. It could briefly mention the return structure, but the tree concept and dedup flags are explained. Most use cases are covered.

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?

All 4 parameters are described in both schema and description, with the description providing deeper semantics. For example, it explains the fallback logic for nodeId, the meaning of depth values, detail levels, and the dedup effect including textOverrides.

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 clearly states the tool's purpose: getting a depth-limited, token-efficient node tree for exploring large files. It distinguishes itself from the sibling tool get_document by explicitly recommending it over that alternative.

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?

The description provides a clear usage guideline by stating 'prefer this over get_document', and explains the default behavior when nodeId is omitted. However, it does not explicitly mention when not to use this tool or provide other alternative tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/awdr74100/figwright'

If you have feedback or need assistance with the MCP directory API, please join our Discord server