remove_background
Input: An image URL for background removal.
Output: We will return the image URL with background removed to the user.
Functionality: This tool is used to remove the background from an image. User will provide an image URL and the tool will return the image with the background removed.
Steps:
We will get the user_id from the request context.
We will validate the user's generation tokens.
We will call the Background Remover API with the provided image URL.
This Background Remover API will return a JSON response with the processed image URL.
We will return the processed image URL to the user.
INSTRUCTION FOR CLIENT MODEL:
Extract the required input parameter 'image_url' (type: string, URL) from the user's prompt.
Ignore any extraneous information in the user's input.
Pass the extracted value to this tool as 'image_url'.
Example: For user input "Remove the background from this image https://example.com/image.jpg", extract 'image_url' as 'https://example.com/image.jpg'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |