replace_background
Removes subject from video using MediaPipe or SAM and composites over a selected background (space, blur, solid, or image).
Instructions
Cut out subject (MediaPipe/SAM) and composite over plate: space|blur|solid|image.
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": {
"project_id": "<project_id>"
},
"name": "replace_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plate | No | space | |
| project_id | Yes | ||
| plate_image | No | ||
| matte_backend | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||