Keep an uploaded reference image in the human's library
save_reference_to_libraryAdds an uploaded reference or an isolated cutout to the account's library, by url or generation id.
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": {
"url": "<url>"
},
"name": "save_reference_to_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The url or ref upload_reference_image returned, OR an isolate_reference_item result: its isolatedReference url, or the generation_id from get_generation_status. | |
| label | No | A short human-readable name, e.g. "Blue serum bottle". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| url | Yes | ||
| referenceId | Yes | ||
| savedToLibrary | Yes |