Search Device
search_deviceFind Swappa device product slugs by free-text name (e.g. "iphone 15", "galaxy s24", "macbook air"). Returns matching products with their slug (needed by device_prices / recent_sales) and current starting price. Use this first when you don't already know the exact slug.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "iPhone 15"
},
"name": "search_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return (1-25, default 10). | |
| query | Yes | Device name or partial name, e.g. "iPhone 15 Pro" or "Pixel 8". |