Vision tools
List the vision tools your organization can call - SAM3, your models, deployments and workflows - and read the card that says exactly how to call each one.
On this page
A vision tool takes an image, video or dataset and returns predictions: SAM3, each ready model, each active deployment and each workflow. Its card gives its inputs, parameters, output, exact calls and cost, so an agent can call it without these docs. The SDK’s own operations as agent tools: Agent tool registry.
List, describe, then run:
pictograph tools list
pictograph tools describe "model/Shelf Detector"
pictograph models predict "Shelf Detector" photo.jpg --remote --json
A card reflects the tool as it is now: its classes, the limits the API enforces and your prices. Both calls are free and open to every role.
Tool handles
Every tool has a handle, the tool value of a list row. Pass it to describe.
| Handle | Tool |
|---|---|
sam3 |
SAM3, the built-in promptable segmentation model |
model/<name> |
A ready model, trained here or imported |
deployment/<name> |
An active deployment (a private endpoint for one model) |
workflow/<name> |
A workflow (models plus tracking and counting) |
An id works in place of a name.
list
Every vision tool you can call now: SAM3, then ready models (newest first), active deployments and workflows. A model still training and a paused deployment aren’t listed.
Source: Tools.list
| Arg | Type | Default | Notes |
|---|---|---|---|
kind |
ToolKind | None |
None |
Only tools of this kind: sam3, model, deployment or workflow |
for tool in client.tools.list(kind="model"):
print(tool.tool, tool.task, tool.summary)
pictograph tools list --kind model --json
curl -s "https://api.pictograph.io/api/v1/developer/tools/vision/?kind=model&limit=100&offset=0" \
-H "X-API-Key: $PICTOGRAPH_API_KEY"
Returns list[ToolSummary]
ToolSummary · 7 fields
class ToolSummary(BaseModel):
"""One row of `client.tools.list()`."""
tool: str
kind: str
id: str | None = None
name: str
task: str | None = None
status: str | None = None
summary: str = ''
The SDK returns every tool. REST returns one page (limit up to 500):
{"data": [...], "pagination": {"limit", "offset", "total", "has_more"}}.
describe
One tool’s card.
Source: Tools.describe
| Arg | Type | Default | Notes |
|---|---|---|---|
tool |
str |
required | Tool handle (handles) |
card = client.tools.describe(tool="model/Shelf Detector")
print(card.summary)
for mode in card.modes:
print(mode.mode, mode.cost.summary)
print(mode.run.cli)
pictograph tools describe "model/Shelf Detector" --json
curl -s "https://api.pictograph.io/api/v1/developer/tools/vision/model/Shelf%20Detector" \
-H "X-API-Key: $PICTOGRAPH_API_KEY"
Returns ToolCard
ToolCard · 15 fields
class ToolCard(BaseModel):
"""Everything an agent needs to call one vision tool."""
tool: str
kind: str
id: str | None = None
name: str
task: str | None = None
status: str | None = None
summary: str = ''
about: str | None = None
classes: list[ToolClass] = []
facts: dict[str, Any] = {}
parameters: list[ToolParameter] = []
output: ToolOutput | None = None
modes: list[ToolMode] = []
related: list[ToolRelated] = []
notes: list[str] = []
Without --json the CLI prints the card as Markdown, for a person. REST returns
{"data": {...}}. A model that isn’t ready is a 409; a name that matches nothing is a 404.
Reading a card
A card has one entry in modes for each way of running the tool. A model has four:
| Mode | What it does | Cost |
|---|---|---|
hosted |
Uploads one image and returns its predictions; nothing to install | Free |
local |
Downloads the weights once and runs them on your machine | Free |
dataset |
Runs over a dataset’s images and saves the predictions as draft labels | Per image |
deploy |
Creates a deployment, your own endpoint for the model | Per minute while it runs |
Each mode answers the same questions:
inputs- yes or no for each offile,url,bytes,videoanddataset; for a no,notesays what to do instead.writes-falsewhen the call changes nothing, otherwise what it saves. Saved labels are drafts: review them before you export and train.cost-micro_usd(1 USD = 1,000,000) per image, frame or minute;estimate: truemeans the final charge is measured after the run.run- the exactcli,pythonandhttpcall, with the tool’s name filled in.
card = client.tools.describe(tool="model/Shelf Detector")
hosted = card.mode(name="hosted")
if hosted is not None and hosted.accepts(kind="file"):
print(hosted.run.python)
Beside the modes, parameters lists what the tool takes and the bounds the API enforces,
output describes one prediction (in prose, as JSON Schema and by example), classes lists
what a model predicts, and related names connected tools (a model’s active endpoints, the
models a workflow runs). Coordinates are absolute pixels of the image you sent, with the
origin at the top left.