Skip to main content
Glama

swebsy_upload_asset

Upload a local image to the site's asset library and get the src for an image component. This is the only way to add your own screenshots, logos, and mockups instead of random stock photos.

Instructions

Upload a local image file into the open site's asset library and return the src to use on an image component. This is the ONLY way to get your own imagery (screenshots, logos, textures, mockups) into a site — an image with an empty src gets a random stock photo instead. Reads the file from the agent's own filesystem, so pass a path you can see (for example a screenshot you just captured). The asset is stored in the project and travels with static export and project JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path to the image on the agent's machine. Allowed types: .png, .jpg, .jpeg, .webp, .gif, .avif, .svg. Max 10 MB — re-encode larger files first. Prefer .svg for logos and other flat vector art so it stays crisp at any size; uploaded SVG is sanitized (scripts and external references are stripped).
filenameNoOptional display name in the asset library. Defaults to the file's own basename.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and delivers: it discloses the file source (agent's filesystem), the return value (src), the storage location (project and export), and even SVG sanitization. This is comprehensive and exceeds typical transparency.

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?

Every sentence adds necessary information: action, uniqueness, filesystem source, and persistence. The description is front-loaded with the core purpose and remains informative without being verbose.

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

Completeness5/5

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

For a tool with two simple parameters and no output schema, the description is fully complete. It explains how to call it, what it returns, and what constraints exist, covering all that an agent needs to use it correctly.

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?

Even though schema coverage is 100%, the description adds significant value: it requires an absolute path, lists allowed file types and size limits, and advises preferring SVG while noting sanitization. These details go well beyond the schema's own descriptions.

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 resource ('Upload a local image file into the open site's asset library'), and it explicitly differentiates from siblings by declaring this is the ONLY way to get your own imagery, clearly distinguishing it from asset listing/deletion tools.

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

Usage Guidelines5/5

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

It provides explicit guidance on when to use the tool (to get your own imagery) and why it matters (empty src yields a stock photo), and it clarifies the file must come from the agent's own filesystem. It effectively communicates the primary use case without leaving alternatives ambiguous.

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