inpaint
Remove or replace objects in images using AI inpainting to edit visual content by specifying what to change with text prompts.
Instructions
Remove or replace objects in an image using AI inpainting. Cost: $0.15. Requires Tier 1+.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media_url | Yes | URL of the image to edit | |
| prompt | Yes | What to remove, replace, or change in the image | |
| mask_url | No | Optional mask image URL (white = edit area, black = keep) |
Implementation Reference
- mcp/vap_mcp_proxy.py:191-218 (handler)The handle_tools_call function routes tool calls, including logic for video generation. It does not contain an implementation for 'inpaint', suggesting the tool may not exist or is handled generically via the API.
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