Skip to main content
Glama

import_image

Import a raster image as a rectangle with image fill, using base64 data or URL, with optional dimensions and scale mode (FILL/FIT/CROP/TILE).

Instructions

Import a raster image (PNG / JPG / GIF) and place it as a rectangle with an IMAGE fill. Provide data (base64-encoded image bytes) or url. The rectangle defaults to the image size unless width/height are given. scaleMode is FILL / FIT / CROP / TILE (default FILL). For vector SVG (logos / icons) use import_svg instead. Returns { ok, nodeId, name, type }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
urlNoImage URL to fetch instead of data
dataNoBase64-encoded image bytes (PNG / JPG / GIF)
nameNoOptional name for the new rectangle
widthNoOverride width (default: image width)
heightNoOverride height (default: image height)
parentIdNoParent node id (default: current page)
scaleModeNo
Behavior4/5

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

Annotations show non-read-only and non-destructive. The description adds behavioral details: the rectangle defaults to image size unless overridden, scaleMode options, and the return shape {ok, nodeId, name, type}. No contradictions.

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 concise sentences. The first covers the core action and parameter options; the second covers defaults, scale, sibling alternative, and return. No wasted words, front-loaded.

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 9 optional parameters and no output schema, the description covers essential usage: input sources, sizing, scaleMode, alternative, and return. It omits details like coordinate origin or error handling, but is adequate for a creation 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 high (67-78%), but the description adds value by explaining the data/url relationship, default sizing, and scaleMode enum. It supplements the schema with usage context.

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 verb 'import' and the resource 'raster image' (PNG/JPG/GIF), and specifies the output as a rectangle with an IMAGE fill. It explicitly distinguishes from its sibling import_svg by directing SVG usage elsewhere.

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?

It provides clear context on when to use this tool (importing raster images) and when to use the alternative (import_svg for vector SVGs). It also explains that data can be provided as base64 or URL, and defaults for width/height and scaleMode.

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