update_own_model
Update or remove an own model
Rename an own model, move it to what its vendor serves now (adopt_latest, after list_own_models with its id shows the update), or remove it (remove: true). Removing keeps everything it made in the Library.
Scope
generation.write— Makes, edits, imports, shares and deletes media in the account.
Behaviour
- Writes
- Creates or changes items in the caller's own account.
- Can delete or overwrite
- Can delete, overwrite, cancel or withdraw something the caller already has, so a host should confirm it.
- Reaches outside
- Reads the vendor's catalog and the model's own schema with the account's own key.
- Idempotent
- Calling it again with the same arguments has no further effect.
Inputs
own_model_idstring · requireduuid
labelstring · optionalat least 1 character · at most 80 characters
adopt_latesttrue · optionalremovetrue · optional
Example call
A tools/call request with the required arguments only, each a placeholder read off the schema. Replace them before sending.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "update_own_model",
"arguments": {
"own_model_id": "00000000-0000-4000-8000-000000000000"
}
}
}Input schema
As the server sends it in tools/list.
{
"type": "object",
"properties": {
"own_model_id": {
"type": "string",
"format": "uuid"
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"adopt_latest": {
"type": "boolean",
"const": true
},
"remove": {
"type": "boolean",
"const": true
}
},
"required": [
"own_model_id"
],
"additionalProperties": false
}Related tools
- list_own_models
The vendor models this account added to its own key (vendor, endpoint, modes, what each makes).