Koskamo

Upload local file and generate media via MCP

The agent successfully uploads a local image or audio file to API Stock and uses it as input for a generation task, returning the final media URL.

How it works

Changes data in your accountsDesign and content

The agent first checks the account balance using get_account to ensure funds are available. It then uses create_upload_url to get a signed PUT URL for the local file, specifying the correct content length and MIME type. The agent uploads the file bytes to this URL. Once the upload is confirmed, it calls create_generation using the returned public URL as the input. Finally, it uses get_task to wait for the generation to complete and retrieves the output.

Prompt

Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.

Prompt for Upload local file and generate media via MCP
Check my balance. Upload the file at /tmp/input.png as an image. Then generate a video using the FLUX 3 model with that image as input. Wait for the result and give me the video link.

MCP servers it needs

Source

The vendor page this playbook is drawn from, and the passage that supports it.

create_upload_url A signed PUT URL for one local input file and its public URL.
MCP server — API Stock

Each playbook is drawn from the vendor page it cites and reviewed by Koskamo before it is published. Koskamo does not run these servers or your agent: check what each tool will do before you let it act on your accounts.