GunSpec

All 6 workflows

Get a firearm picture

  • gunspec_firearm_image
  • Builder
  • Up to 3 requests
  • Read-only

Workflow. Returns one picture of a firearm as base64 bytes, ready to attach to a post or upload elsewhere. Picks the firearm's first render (or photograph, with `kind: "photo"`), falling back to the other kind when it has none, then the largest stored size whose decoded bytes are at most `maxBytes`. The response contains `data` (base64 with no `data:` prefix), `mimeType` (PNG, JPEG or WebP, never SVG), `width`, `height`, `bytes`, `alt`, the `credit` (author, source, sourceUrl, licence) and `rights`. Post the picture without a credit line only when `rights.republish` is `free`; show the credit beside it when it is `with_credit`; do not post it when it is `no`. Fails with a clear message when the firearm has no render or photograph, or when no size fits. Use `gunspec_firearm_media` instead to list URLs without moving bytes.

Example usage

  1. 1

    A person asks

    • Get me a picture of the Glock G19 I can attach to a post.
  2. 2

    The assistant calls the tool

    tools/call
    json
    {  "name": "gunspec_firearm_image",  "arguments": {    "id": "glock-g19"  }}
  3. 3

    The server answers

    No captured answer is available for this tool yet.

Steps

The requests this workflow makes, in order. If your plan does not include an optional step, that step is omitted and listed under gaps in the response, together with the plan it requires.

  1. 1

    List every asset for a firearm

  2. 2

    Get one asset

  3. One response

    The workflow combines up to 3 requests into a single response for the assistant.

Arguments

  • stringrequired

    The firearm slug, e.g. as returned by a list or search tool.

  • stringdefaultrender

    Which picture to prefer. Falls back to the other kind when the firearm has none of this one.

    Accepts
  • integerdefault350000

    The largest decoded picture to return, in bytes. The largest stored size at most this big is chosen.

    Range
    1 – 350000
json