focus_get_workspace_context
Resolves and caches Toggl organization and workspace IDs from environment or arguments, establishing required context for subsequent API calls.
Instructions
Toggl Focus/2.0: resolve organization_id and workspace_id from env/args (and current_workspace_id from settings when needed). Caches IDs for later tools. Set TOGGL_ORGANIZATION_ID + TOGGL_WORKSPACE_ID. Note: the session /workspaces/{id}/context endpoint is not used with API keys.
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": "focus_get_workspace_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | No | Workspace ID. Defaults to TOGGL_WORKSPACE_ID or cached context. | |
| organization_id | No | Organization ID. Defaults to TOGGL_ORGANIZATION_ID or cached context. |