Skip to main content
Glama

Open File

photopea_open_file

Open an existing image from a URL or local path in Photopea as a new active document, supporting PSD, PNG, JPG, WebP, SVG, and common formats.

Instructions

Open an existing image file in Photopea as a new document. Supports PSD, PNG, JPG, WebP, SVG, and other common formats. The opened file becomes the active document. Use create_document instead to start with a blank canvas.

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": {
      "source": "<source>"
    },
    "name": "photopea_open_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesURL or absolute local file path of the image to open (e.g. /Users/me/photo.psd or https://example.com/image.png)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • changedInput schema / properties / source / description
      Previous value: -"URL or local file path to open"New value: +"URL or absolute local file path of the image to open (e.g. /Users/me/photo.psd or https://example.com/image.png)"
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the write-capable, non-destructive, non-idempotent, open-world profile. The description adds the important side effect that the opened file becomes the active document, plus the accepted source formats and that source may be a URL or local path. It stops short of describing what happens on failure or with already-open files, so not a 5.

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?

Three short sentences, front-loaded with the action, then formats, then the alternative. Every sentence carries information an agent would use at selection time.

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?

For a one-parameter tool with no output schema, this covers action, accepted formats, state effect, and the closest alternative. Only the return value (e.g., a document handle) is unspecified, which is a minor gap.

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 100%, so the baseline is 3, and the description adds meaning by listing supported formats, which clarifies what the single `source` parameter may point at. The schema already explains URL vs. absolute path with examples, so the extra value is modest.

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?

States a specific verb and resource ('Open an existing image file in Photopea as a new document'), enumerates concrete formats, and explicitly distinguishes itself from photopea_create_document. An agent can select it without opening the schema.

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?

Gives clear guidance that this is for existing files and names the sibling to use instead for a blank canvas. It lacks explicit when-not cases such as already-open documents or unsupported sources, but the primary routing decision is covered.

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