sb_api_call
Call Store Builder API operations by catalog ID or custom method and path; dry-run by default lets you inspect responses, select fields, and limit list items before sending changes.
Instructions
Call an operation from sb_api_find (id), or a route the catalog lacks (method+path); dry run by default. pick selects fields, max_items caps lists, item_offset skips items. Lists over 60 KB say so.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sb_api_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Operation id from sb_api_find, e.g. "get:/api/sites/{siteID}/menus" | |
| body | No | ||
| file | No | Local file: multipart upload (field "file"); on a GET, saves the answer there | |
| path | No | Bare platform path, e.g. "/api/sites/{siteId}/published"; {siteId} defaults to SB_SITE | |
| pick | No | Fields per list item or in a {"product":{…}} answer; dotted: "variants.id" | |
| merge | No | PUT: deep-merge body over the current record (arrays replace) | |
| query | No | ||
| method | No | With path, when id is absent: GET|HEAD|POST|PUT|PATCH|DELETE | |
| dry_run | No | Defaults to true. Pass false to actually send. | |
| site_id | No | ||
| if_match | No | If-Match version; shipping-config reads it itself | |
| max_items | No | ||
| item_offset | No | Offset within this response, after API paging. Reads only. | |
| path_params | No |