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.
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. |