fk-upload-image

A command that uploads a local PNG, JPG, or WebP image to Google Flow and returns a media ID, which is the image's unique reference there.

In plain words
What is it for?
Use it to upload channel icons, covers, scene images, or entity reference images, optionally linking the upload to a project or entity.
Why use it?
It removes the manual steps for transferring local images and gives you the identifier needed to use the uploaded image elsewhere in Flow.

Command for Claude Code

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/crisng95/flowkit/fk-upload-image
Clone the repo
git clone --depth 1 https://github.com/crisng95/flowkit

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,045 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00000 $0.01045
Opus 5 $0.00000 $0.00522
Sonnet 5 $0.00000 $0.00209
Haiku 4.5 $0.00000 $0.00104

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

Security

Grade C, and why

fk-upload-image scanned grade C with 2 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 2d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s http://127.0.0.1:8100/api/characters/<ENTITY_ID> | python3 -c "

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://127.0.0.1:8100/health
.claude/commands/fk-upload-image.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Upload a local image file to Google Flow and get a media_id (UUID).

Usage: /fk-upload-image <file_path> [--project <project_id>] [--entity <entity_id>]

Useful for: setting channel icons, covers, or any local image as an entity reference or scene image.

Step 1: Check health

curl -s http://127.0.0.1:8100/health

Must have extension_connected: true AND flow key present. Abort if not.

curl -s http://127.0.0.1:8100/api/flow/status
# Must return: {"connected": true, "flow_key_present": true}

Step 2: Upload image

curl -s -X POST http://127.0.0.1:8100/api/flow/upload-image \
  -H "Content-Type: application/json" \
  -d '{
    "file_path": "/absolute/path/to/image.png",
    "project_id": "<PID>",
    "file_name": "descriptive_name.png"
  }'

Parameters:

  • file_path (required): Absolute path to local image file (PNG, JPG, WebP)
  • project_id (optional): Project to associate the upload with
  • file_name (optional): Descriptive filename, defaults to image.png

Response:

{
  "media_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "raw": { "media": { "name": "uuid", ... } }
}

The media_id is the UUID you use everywhere (entity refs, scene images, video start frames).

Step 3: Apply the media_id

Option A: Set as entity reference image

curl -s -X PATCH http://127.0.0.1:8100/api/characters/<ENTITY_ID> \
  -H "Content-Type: application/json" \
  -d '{"media_id": "<MEDIA_ID>"}'

Option B: Set as scene image

curl -s -X PATCH http://127.0.0.1:8100/api/scenes/<SCENE_ID> \
  -H "Content-Type: application/json" \
  -d '{
    "horizontal_image_media_id": "<MEDIA_ID>",
    "horizontal_image_status": "COMPLETED"
  }'

(Use ${ori}_image_media_id / ${ori}_image_status matching project orientation.)

Option C: Create new entity with uploaded image

# 1. Create entity
curl -s -X POST http://127.0.0.1:8100/api/characters \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Asset Name",
    "entity_type": "visual_asset",
    "description": "What the image shows",
    "media_id": "<MEDIA_ID>"
  }'

# 2. Link to project
curl -s -X POST http://127.0.0.1:8100/api/projects/<PID>/characters/<ENTITY_ID>

Read the full file on GitHub · 124 lines

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. 2d ago First seen · 124 lines · 0 tokens per session scan C 1c556165e6f1

Subscribe to this mod's changes

fk-upload-image is a command published in the GitHub repository crisng95/flowkit (620 stars, last pushed 14d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,045 tokens. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.