GunSpec

Alle 6 Workflows

Get a firearm picture

  • gunspec_firearm_image
  • Builder
  • Bis zu 3 Anfragen
  • Nur lesend

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.

Anwendungsbeispiel

  1. 1

    Eine Person fragt

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

    Der Assistent ruft das Tool auf

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

    Der Server antwortet

    Für dieses Tool liegt noch keine erfasste Antwort vor.

Schritte

Die Anfragen dieses Workflows in ihrer Reihenfolge. Umfasst dein Plan einen optionalen Schritt nicht, wird dieser ausgelassen und in der Antwort unter gaps zusammen mit dem erforderlichen Plan aufgeführt.

  1. 1

    List every asset for a firearm

  2. 2

    Get one asset

  3. Eine Antwort

    Der Workflow fasst bis zu 3 Anfragen zu einer einzigen Antwort für den Assistenten zusammen.

Argumente

  • stringerforderlich

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

  • stringstandardrender

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

    Akzeptiert
  • integerstandard350000

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

    Bereich
    1 – 350000
json