image

image is a command for coding agents from stockvalue/genspark-mcp. It costs 24 tokens per session (426 once invoked), scanned A, original, MIT.

An image-generation command that sends a user's prompt to Genspark, an AI image service. It can also pass requested model, aspect ratio, and image size.

In plain words
What is it for?
It is for generating images from prompts with optional choices such as model, proportions, and resolution, subject to account access.
Why use it?
It provides a defined way to request an image without requiring the user to manage the generation command directly.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/stockvalue/genspark-mcp/image
Clone the repo
git clone --depth 1 https://github.com/stockvalue/genspark-mcp

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for image

README.md
[![agentmods](https://agentmods.dev/badge/commands/stockvalue/genspark-mcp/image.svg)](https://agentmods.dev/commands/stockvalue/genspark-mcp/image)
Your own site
<a href="https://agentmods.dev/commands/stockvalue/genspark-mcp/image"><img src="https://agentmods.dev/badge/commands/stockvalue/genspark-mcp/image.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 426 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.00426
Opus 5 $0.00012 $0.00213
Sonnet 5 $0.00005 $0.00085
Haiku 4.5 $0.00002 $0.00043

Measured 5d ago against content hash 2bee8e2c327a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

image scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/image.md · 23 lines

What it actually says

mcp__genspark-image-mcp__generate_image を使い、下の指示でGensparkのAI画像を生成してください。

  1. ユーザーの指示文を prompt に渡す。
  2. モデル、比率、解像度の明示希望だけを対応する引数に渡す。希望がなければ省略し、既定の GPT Image 2 を使う。
    • model: 例 GPT Image 2 / Nano Banana Pro / Flux 2 Pro / Ideogram V3
    • aspect_ratio: 例 16:9 / 1:1 / 9:16 / 3:2 / 4:5
    • image_size: 0.5K / 1K / 2K / 4K
  3. include_images: true を渡し、完了後は生成枚数・使用モデル・保存先を簡潔に報告する。
  4. not_logged_in なら、AI自身はログイン操作を行わず、利用者本人に次を実行してもらう。
    cd ~/Genspark-MCP && .venv/bin/python login.py
    
    パスワード、2段階認証コード、cookieを要求・表示・保存しない。
  5. busy なら少し待って再実行する。別のプロセスを広範囲に終了させるコマンドは実行しない。

プロンプト: $ARGUMENTS

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 23 lines · 24 tokens per session scan A 2bee8e2c327a

Subscribe to this mod's changes

image is a command published in the GitHub repository stockvalue/genspark-mcp (3 stars, last pushed 27d ago), licensed MIT. It adds 24 tokens to every session and 426 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.