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.
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": "get_workspace"
}
}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; templates:read with batches:create for create_job; batches:create with renders:create for run_batch, run_job and create_job with run; batches:read, renders:read and creatives:read for get_job; 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 |