mcpField
I
image-edit

image-edit

github.com/agntswrmCreative & media6146 installsUpdated 34w ago
Repository

About image-edit

An image-editing skill for using text prompts to transform one or more input images. It supports image combinations and configurable output ratio, resolution, provider, and model.

Key features

  1. 01Prompt-based image editing
  2. 02Multiple input image composition
  3. 03Aspect ratio and resolution options
  4. 04Provider and model selection
  5. 05JSON output with image path

Use cases

  1. 01Changing details in a photo
  2. 02Adding elements to a portrait
  3. 03Combining a person and a scene

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/agntswrm/agent-media --skill image-edit

After installing, type/image-editin Claude Code to confirm it loaded.

Details

From the project README

Image Edit

Edits one or more images using a text prompt (image-to-image transformation). Supports multiple input images for combining styles, subjects, or scenes.

Command

npx agent-media@latest image edit --in <paths...> --prompt <text> [options]

Inputs

OptionRequiredDescription
--inYesOne or more input file paths or URLs
--promptYesText description of the desired edit
--aspect-ratioNoAspect ratio for output (e.g., 1:1, 16:9, auto)
--resolutionNoOutput resolution (e.g., 1K, 2K, 4K)
--outNoOutput path, filename or directory (default: ./)
--providerNoProvider to use (default: auto-detect)
--modelNoModel override (e.g., fal-ai/flux-2/edit)

Output

Returns a JSON object with the edited image path:

{
  "ok": true,
  "media_type": "image",
  "action": "edit",
  "provider": "fal",
  "output_path": "edited_123_abc.png",
  "mime": "image/png",
  "bytes": 567890
}

Examples

Edit a single image:

npx agent-media@latest image edit --in photo.jpg --prompt "make the sky more vibrant"

Add elements to an image:

npx agent-media@latest image edit --in portrait.png --prompt "add sunglasses"

Combine multiple images (pass multiple paths after --in, separated by spaces):

npx agent-media@latest image edit --in person.png landscape.jpg --prompt "place the person from the first image into the landscape from the second image"

Multi-image edit with aspect ratio and resolution:

npx agent-media@latest image edit --in template.png person.jpg --prompt "Use image one as the template and reframe the person from image two to match" --aspect-ratio 1:1 --resolution 2K --model fal-ai/nano-banana-pro/edit

Edit with specific provider:

npx agent-media@latest image edit --in scene.jpg --prompt "change to night time" --provider replicate

Providers

This action requires an external provider:

  • fal - Requires FAL_API_KEY
  • replicate - Requires REPLICATE_API_TOKEN
  • runpod - Requires RUNPOD_API_KEY
  • ai-gateway - Requires AI_GATEWAY_API_KEY

The local provider does not support image editing.

Comments

Markdown supported