The connected workspace
get_workspaceReturns the Kalpana workspace this connection covers, chosen when the user connected: its ID, name and slug, the user's role and what it allows here (permission codes, and in plain words whether it can render batches), and allowedImageDomains, the hosts upload_images will fetch an image URL from. Every other tool works in this workspace and takes no workspace ID. Call it to explain a 403 from another tool (run_batch needs renders:create, for example), or before passing image URLs to upload_images: a URL on another host is refused until an admin adds the domain in Workspace Settings > Domain Whitelisting. Working in another workspace needs a reconnect that chooses it. Needs workspaces:read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| role | Yes | The user's role in this workspace | |
| slug | Yes | ||
| permissions | Yes | Permissions both the role and this connection grant here, and the tools they open: templates:read for search_templates, get_template_inputs, and validate_batch; assets:read for search_assets; assets:create for upload_images; batches:read for get_batch, list_batches, and get_batch_jobs; templates:read with batches:create for create_batch, update_batch, and update_job; batches:create with renders:create for run_batch; batches:read, renders:read, and creatives:read together for get_batch_outputs | |
| allowedImageDomains | No | Hosts an image URL for upload_images may come from, subdomains included; an admin adds others in Workspace Settings > Domain Whitelisting |