Scale objects from credit card
scale_objects_from_credit_cardScale object pixel dimensions using a standard CR80 credit card reference.
Args:
image_id: Caller-defined source identifier; no image is uploaded.
credit_card_pixel_width: Caller-supplied pixel width of a CR80-size card.
objects: Objects to scale. Each object needs pixel_width and pixel_height;
label, pixel_area, pixel_perimeter, and input confidence are optional.
credit_card_pixel_height: Optional caller-supplied height for distortion check.
payment_ref: Optional paid escrow reference consumed by the gateway.
request_id: Optional retry-safe idempotency key (maximum 128 characters).
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": {
"image_id": "<image_id>",
"credit_card_pixel_width": "<credit_card_pixel_width>",
"objects": "<objects>"
},
"name": "scale_objects_from_credit_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objects | Yes | Objects to scale, each with its pixel dimensions. | |
| image_id | Yes | Your id for the source image. The image itself is not uploaded. | |
| request_id | No | Optional. Your id for this call. Repeat it to retry safely: the same request_id is never charged twice. | |
| payment_ref | No | Optional. A paid credit or payment reference, used only after the free daily calls. Leave it out to use the free tier or a seat. | |
| credit_card_pixel_width | Yes | Width of the CR80 card in the image, in pixels. | |
| credit_card_pixel_height | No | Optional. Height of the card in pixels, to check the scale. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| field | No | ||
| result | No | ||
| status | Yes | ||
| message | No | ||
| timestamp | No | ||
| constraint | No | ||
| error_type | No |