Skip to main content
Glama

ai_edit

Edit images using AI with natural language prompts. Supports single and multi-image editing for visual content modification.

Instructions

Edit images using AI with natural language prompts. Supports single and multi-image editing. Cost: $0.15. Requires Tier 1+.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
media_urlYesURL of the primary image to edit
promptYesNatural language instruction for editing
additional_imagesNoUp to 2 additional reference image URLs
aspect_ratioNoOutput aspect ratio (default: match input image)match_input_image
seedNoRandom seed for reproducible results

Implementation Reference

  • The `handle_tools_call` function acts as the central router for tool execution in the VAP MCP Proxy. While it currently explicitly handles `generate_video`, `estimate_video_cost`, and `get_task`, other tools (including potential future 'ai_edit' tools) are forwarded directly to the backend API via `make_request`.
    def handle_tools_call(params: Dict) -> Dict:
        """
        Handle tools/call request.
    
        Directive #240: Special handlers for video tools.
        """
        tool_name = params.get("name", "")
        arguments = params.get("arguments", {})
    
        # ═══════════════════════════════════════════════════════════════════
        # VIDEO TOOL HANDLERS (Directive #240)
        # ═══════════════════════════════════════════════════════════════════
    
        if tool_name == "generate_video":
            return _handle_generate_video(arguments)
    
        if tool_name == "estimate_video_cost":
            return _handle_estimate_video_cost(arguments)
    
        if tool_name == "get_task":
            return _handle_get_task(arguments)
    
        # Default: forward to MCP API
        response = make_request("/tools/call", {
            "name": tool_name,
            "arguments": arguments
        })
        return response

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/elestirelbilinc-sketch/Media-infrastructure'

If you have feedback or need assistance with the MCP directory API, please join our Discord server