roboflow_inference_classify
Classify images with a Roboflow model and receive top-K predictions with confidence scores.
Instructions
Run classification inference on a Roboflow model. Returns top-K class predictions with confidence scores.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_id": "<model_id>",
"image": "<image>"
},
"name": "roboflow_inference_classify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image as a URL, base64 string, or local file path | |
| top_k | No | Number of top predictions to return | |
| model_id | Yes | Classification model ID in format 'project/version' (e.g. 'cats-vs-dogs/2') |