Remove a photo's background
remove_backgroundUse this when the user attaches or links a photo and asks to remove its background, cut out the subject or get a transparent PNG. It returns the user's own photo with the background cut away by a matte, at its original size up to 2,048 pixels on the long edge, every subject pixel unchanged. Do not use to generate a new image. It cuts the subject out of the original photo with a matte. It takes the user's image as image (a file the user attached), imageUrl (https) or imageBase64, and returns the cutout, a share link, and Open in Brilliant.
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": "remove_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | The photo the user attached. | |
| imageUrl | No | An https URL of the photo (PNG, JPEG or WebP, up to 25 MB). | |
| mimeType | No | The mime type of imageBase64 (optional, the bytes are sniffed). | |
| imageBase64 | No | The photo's bytes as base64 (PNG, JPEG or WebP, up to 25 MB). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| held | No | ||
| width | Yes | ||
| height | Yes | ||
| openUrl | No | ||
| matteUrl | No | ||
| shareUrl | No | ||
| originalUrl | No |