Community影像github.com

agentearth-image-editing

Edit, restore, or adapt an existing image. Make prompted edits with Nano Banana, GPT Image, FLUX, Kling, Recraft, Qwen Image, Wan, Z-Image, Luma Photon, MiniMax Image, Phota, FireRed, JoyAI Image Edit, or Tencent Hunyuan as suited to the change. Use BRIA for background or object edits, Pixelcut for background removal, EVF-SAM to create a mask, and Finegrain Eraser to remove a masked area. Upscale with SeedVR, Real-ESRGAN, Crystal Upscaler, or Clarity Upscaler. Try on clothes with FASHN or BRIA Virtual Try-On, restore faces with CodeFormer, or relight a photo with IC-Light. Supply the source image and describe what to change or keep.

agentearth-image-editing 是什麼?

agentearth-image-editing is a Claude Code agent skill that edit, restore, or adapt an existing image. Make prompted edits with Nano Banana, GPT Image, FLUX, Kling, Recraft, Qwen Image, Wan, Z-Image, Luma Photon, MiniMax Image, Phota, FireRed, JoyAI Image Edit, or Tencent Hunyuan as suited to the change. Use BRIA for background or object edits, Pixelcut for background removal, EVF-SAM to create a mask, and Finegrain Eraser to remove a masked area. Upscale with SeedVR, Real-ESRGAN, Crystal Upscaler, or Clarity Upscaler. Try on clothes with FASHN or BRIA Virtual Try-On, restore faces with CodeFormer, or relight a photo with IC-Light. Supply the source image and describe what to change or keep.

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/agentearth-ai/agentearth-integrations/tree/HEAD/hermes/plugin/skills/agentearth-image-editing

Installed? Explore more 影像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

agentearth-image-editing 是做什麼的?

Edit, restore, or adapt an existing image. Make prompted edits with Nano Banana, GPT Image, FLUX, Kling, Recraft, Qwen Image, Wan, Z-Image, Luma Photon, MiniMax Image, Phota, FireRed, JoyAI Image Edit, or Tencent Hunyuan as suited to the change. Use BRIA for background or object edits, Pixelcut for background removal, EVF-SAM to create a mask, and Finegrain Eraser to remove a masked area. Upscale with SeedVR, Real-ESRGAN, Crystal Upscaler, or Clarity Upscaler. Try on clothes with FASHN or BRIA Virtual Try-On, restore faces with CodeFormer, or relight a photo with IC-Light. Supply the source image and describe what to change or keep.

Call the tools listed below from the connected agentearth-plugin MCP server. Use the tool names exposed by Hermes for that server. Hermes handles authentication. Do not send HTTP requests yourself.

Available Tools

GetAccountOverview

Returns the authenticated user's account info. Takes no arguments.

Response fields: user_id, user_name, key_name, credit (remaining balance), error_no (0 = success).

Call this directly — without RecommendTools first — whenever the user asks about their AgentEarth account, user ID, API key name, or credit balance.

GetUsageRecords

Query the authenticated account's spending, tool calls and credit transactions. Call the tool directly for billing questions. It defaults to a seven-day usage summary; data can lag by one minute.

Use type="usage" (the default) to review tool-call spending and call history. Use type="funds" to review account credit transactions, such as recharges, rewards, and deductions. Use type="all" to review both and explain a balance change. Use view="summary" (the default) for totals, or view="records" for paginated records. The default time range is seven days.

Pending calls have zero charged credit and a separate reserved_credit. status filters call details; totals cover the whole query window.

RecommendTools - discover tools for a task

ParameterTypeRequiredDescription
querystringYesNatural-language description of the task
limitinteger-Maximum number of tools to return (1–50), default 5

Returns a list of candidate tools, each with:

  • tool_name — the tool's identifier
  • tool_url — opaque URL to pass to ExecuteTool; never modify it
  • description, when_to_use — what the tool does and when to pick it
  • credit — cost of one call, use this plus task fit to choose among candidates
  • input_schema — JSON Schema for ExecuteTool's params
  • associated_tools — optional companion tools (e.g. a geocoding/ID lookup tool) that may need to be called first if a required field can't be filled directly from user input

Call this before ExecuteTool for any external-tool task. Read every candidate's input_schema and associated_tools before picking one — some fields require an ID or code obtained from a companion lookup tool rather than free text (e.g. a weather tool that needs a location ID resolved by a geocoding tool first).

ListTools - browse tools without semantic search

ParameterTypeRequiredDescription
pageinteger-Page number starting at 1, default 1
page_sizeinteger-Items per page (1–100), default 20
keywordstring-Filter by keyword in the name or description
sortstring-Sort order

Use when the user wants to browse or search tools by name/category rather than describe a task.

GetToolDetail - inspect one tool by exact name

ParameterTypeRequiredDescription
tool_namestringYesExact tool name

Returns the same shape as one entry from RecommendTools/ListTools (tool_url, description, input_schema, etc). Use when you already know the exact tool_name (e.g. from associated_tools, or the user named a specific tool) and don't need semantic search.

ExecuteTool - run a tool

ParameterTypeRequiredDescription
tool_urlstringYesExact URL returned by RecommendTools or GetToolDetail. Do not edit it, append anything to it, or reorder its parameters.
paramsobject-Arguments built from the selected tool's input_schema

Must be called after RecommendTools or GetToolDetail. tool_url must be passed through byte-for-byte as returned — do not edit, re-encode, or reconstruct it. Build params strictly from the selected tool's input_schema.properties; validate required, type, enum, and additionalProperties before calling.

Examples

  • “How many credits did I spend over the past seven days?” → GetUsageRecords({"type":"usage","view":"summary"}). Read summary.total_credit.
  • “Show me each tool call from the past seven days and how many credits it cost.” → GetUsageRecords({"type":"usage","view":"records"}). Read the paginated tool call records.
  • “Why did my balance change? Show me every transaction.” → GetUsageRecords({"type":"all","view":"records"}). Explain the change using balance_change, tool call records, and credit transaction records.
  • "What's my AgentEarth credit balance?" → call GetAccountOverview() directly (no RecommendTools).
  • "Use AgentEarth to check today's weather in Shanghai" → RecommendTools({"query": "current weather in Shanghai"}) → pick a weather tool from the candidates → if its input_schema needs a location ID/adcode rather than a free-text city name, call the companion lookup tool named in associated_tools first → ExecuteTool({"tool_url": <candidate's tool_url>, "params": {...}}).
  • "Use AgentEarth to check the current Bitcoin price" → RecommendTools({"query": "current bitcoin price"}) → ExecuteTool with the chosen finance tool's tool_url and schema-derived params.
  • "List the AgentEarth tools related to maps" → ListTools({"keyword": "map"}) to browse by name instead of describing a task.
  • User names a specific tool exactly (e.g. "run ae_qweather_geo_top_city") → GetToolDetail({"tool_name": "ae_qweather_geo_top_city"}) instead of RecommendTools.

Workflow

  1. Account questions (user ID, user name, key name, credit balance) → call GetAccountOverview directly. For spending, billing history or changes in balance, call GetUsageRecords directly.
  2. External-tool tasks → call RecommendTools with a natural-language description of the task, or ListTools/GetToolDetail when the user wants to browse or inspect tools by name.
  3. Review the candidates' tool_url, description, when_to_use, and input_schema. Pick the best fit by task relevance, schema clarity, and credit cost; keep a fallback candidate when one exists.
  4. If a required param needs an ID/code from a companion tool (see associated_tools), call that tool first.
  5. Call ExecuteTool with the exact tool_url and params built from input_schema.
  6. Never invent a required value (URL, ID, token, code snippet, or other concrete input) that the user hasn't provided — ask the user instead.

Reading the Result

ExecuteTool's MCP result has an isError field — that is the reliable success/failure signal, not a fixed field inside the payload:

  • isError absent/false — the call succeeded. The content is the raw response of the underlying third-party API, in that API's own format (it may or may not contain something resembling error_no/status fields of its own — don't assume a single universal shape across tools).
  • isError: true — the call failed. The error detail comes back wrapped as <tool_output>...</tool_output>, often followed by a <platform_annotation> with a suggestion (e.g. "revise your request parameters based on the upstream provider's error message"). Use that detail to correct params and retry, or fall back to another candidate from RecommendTools if the issue isn't fixable from user-provided input.

GetUsageRecords/GetAccountOverview and GetToolDetail/RecommendTools/ListTools (the AgentEarth-native lookups, as opposed to ExecuteTool passthrough results) do use error_no == 0 as their own success signal.

Credentials

If the AgentEarth MCP tools are unavailable, ask the user to connect in a terminal for the same Hermes profile:

hermes mcp add agentearth-plugin --url https://agentearth.ai/mcp-server/r/FbtaiJMv --auth oauth

Hermes opens the browser for AgentEarth sign-in and manages the tokens. Use hermes mcp login agentearth-plugin to sign in again after setup. Start a new chat if needed so Hermes can discover the connected server's tools. Never ask the user to paste credentials in chat.

Incorrect Flow

  • Calling ExecuteTool before RecommendTools/GetToolDetail.
  • Modifying, re-encoding, or reconstructing tool_url.
  • Inventing required params instead of asking the user.
  • Treating error_no == 0 as the success signal for ExecuteTool results — use isError instead.
  • Making raw HTTP requests to AgentEarth endpoints yourself, or asking the user for an API key — use the six MCP tools above through the profile's AgentEarth OAuth connection.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

相關技能