Skip to main content
Glama

Blitframe

Edit project

edit_project

Change a project's files on one variation (main unless variation names another), creating a new version that becomes that variation's head. Files not mentioned are kept from the head. Text files go inline as content, or by upload when a script wrote them; a picture, video, sound, font or 3D model goes up with create_upload and in by its uploadId (a file already in the workspace by fromVersionId). replacements change text, fonts, images or video by layer id without sending data.json. Without expectedHeadVersionId the change applies to whatever the head is (and is made again on a newer head if another change lands first, up to three tries, then head_moved: send it again); with it, the call fails with head_moved unless that is still the head. An edit whose files, soundtrack and text fitting baseline end up the same as the head creates no version and returns the head, unless the head has problems (it is checked again), the edit gives a different name, or it names an upload. Sent again after it used its uploads, the same edit returns the version it made. A version whose files would total more than the plan's project size (get_usage's limits.maxProjectBytes) is refused with project_too_large; one already larger may stay that size or shrink. Pass idempotencyKey to make any retry safe. A request over 1 MB must arrive within two minutes (too_slow), and a workspace sends one at a time: two more wait their turn, and another is refused with large_body_busy; send it again after the seconds its message gives.

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": {
      "projectId": "<projectId>"
    },
    "name": "edit_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional version name, used in download file names. A version keeps its name: to name the current state, send an edit with only name, which makes a new version with the same files.
filesNoFiles to add or replace: each gives exactly one of content, uploadId or fromVersionId. Text files (data.json, text_fitting.json) go as content or an uploadId; pictures, video, audio, fonts and models as an uploadId.
deleteNoPaths of files to remove.
messageNoWhat changed, cut at 500 characters. Default: "Update", or the list of replaced layers.
moveHeadNoDefault true. False makes the version without moving any head: a draft to check or render, whose parent is the version it starts from (restoreFromVersionId, or the head) and which no variation's history contains. Drafts made at once never collide.
projectIdYesProject id, from list_projects.
variationNoThe variation to change, from list_variations; default main.
soundtrackNoThe audio renders of this version play. Later versions keep it while the file stays. A render's audio overrides it.
replacementsNoChange layers of the head's data.json by layer id (from inspect_layers): text and font keep the text's style; an image is fitted into the size its asset declares, and a video is stretched to that size without keeping its aspect ratio. Not together with a data.json in files.
idempotencyKeyNoMakes a retry safe: for 24 hours the same edit with the same key returns the version the first one made. The same key with a different edit fails with idempotency_key_reused; while the first is still running, idempotency_key_in_use.
removeSoundtrackNotrue removes the soundtrack and keeps its audio file. Not with soundtrack.
fontLicenseAcceptedNoRequired true when files adds a font file (.ttf, .otf, .woff, .woff2): the user confirms they are licensed to render with it.
restoreFromVersionIdNoStart from the files of this version of the project, from list_versions, instead of the head's (undo). The new version still goes on the head, unless moveHead is false.
expectedHeadVersionIdNoOptional: the headVersionId this change was made on, so it fails with head_moved if the head has moved since. Null or left out applies it to the current head.
textFittingBaselineVersionIdNoOptional, with text_fitting.json in the version: an earlier version in the variation's history whose text originalBounds measures. Without it, a changed text_fitting.json measures against the version it was edited on, and an unchanged one keeps its baseline.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
filesYes
numberYes
messageYes
problemsYes
warningsYes
createdAtYes
projectIdYes
renderableYes
soundtrackYes
compositionYes
parentVersionIdYes
textFittingBaselineVersionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / replacements / items / properties / justify
      Added value: +{
      +  "description": "Text layers only: the paragraph alignment, such as right for Hebrew or Arabic text.",
      +  "enum": [
      +    "left",
      +    "center",
      +    "right"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The annotations only say readOnlyHint=false, destructiveHint=false and idempotentHint=false; the description goes far beyond by disclosing automatic retry on head movement (up to three tries, then head_moved), no-op dedup that returns the head, project_too_large limits tied to get_usage, too_slow for >1 MB bodies, and per-workspace concurrency with large_body_busy. Repeated calls do create new versions, which is consistent with idempotentHint=false, so there is no annotation contradiction.

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?

It is front-loaded with the core purpose, which is good, but the remaining content is a single dense paragraph mixing retry semantics, size limits and concurrency rules with no grouping or line breaks, making it hard to scan despite most sentences carrying real information.

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 15-parameter mutation tool with nested objects, the definition covers the retry model, error codes, limits and idempotency behavior that an agent needs to call it correctly, and an output schema exists so return values need not be restated.

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 already 100%, so the baseline is 3; the description earns an extra point by adding cross-parameter meaning that the schema does not state directly, such as replacements excluding a data.json in files and text_fitting baseline behavior interacting with textFittingBaselineVersionId.

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 ('Change a project's files on one variation') and specifies that it creates a new version that becomes the variation's head, so an agent can distinguish it from create_project, rename_project or list_project_files immediately.

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?

Gives explicit routing rules: media files go via create_upload, existing files come in by fromVersionId, layer changes are done through replacements instead of a data.json, and expectedHeadVersionId / idempotencyKey are described with when-to-use conditions and their failure modes.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources