workspace_provider_keys
Manage this workspace's OWN provider API keys (bring your own key). action: list (default) shows every provider: configured, enabled for this workspace, when uploaded, never the key; set stores api_key for provider after the provider confirms it works, and enables it for THIS workspace; enable / disable switch this workspace's use of the key; delete removes the stored key. For video use provider gengen or byteplus: videos.generate then runs on your account, not the platform's. A key stored inside an integration is NOT used by these features. api_key also takes a clip: handle from clipboard.copy (pattern 'api_key'): a key someone sent in a chat is stored without anyone reading it. Needs ADMIN or OWNER in the workspace (list: any member). Where it is stored: keys live on the WORKSPACE OWNER's row and serve every workspace that owner owns. The owner may always set, replace or delete. An admin who is not the owner may set when the owner has no key for that provider, and may replace or delete only while no other workspace of the owner has the provider enabled; otherwise it is refused and the owner must do it. enable / disable touch only this workspace's switch.
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": "workspace_provider_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | list | set | enable | disable | delete. OMIT for list. | list |
| api_key | No | set only: the key, or a `clip:` handle from clipboard.copy (pattern 'api_key'). Never shown back. OMIT for every other action. | |
| provider | No | Provider id (see list). gengen and byteplus are the video providers. Required for set / enable / disable / delete; OMIT for list. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |