window_set_focus
Set or clear the front OmniFocus window's focus to a specific project or folder, scoping the visible view.
Instructions
Set or clear the front OmniFocus window's focus container (a project or folder). UI-affecting tool — only meaningful when the user can see OmniFocus. Headless agents should not fire this. Use when the user asks 'focus on this project' or a guided flow wants to scope the visible view. Do NOT use to filter task data — prefer task_list { projectId } or perspective_evaluate instead, both of which work without touching the user's UI. Pass containerId (a ProjectId or FolderId) to focus, or null to clear focus. Returns { focusContainerIds: string[] } — single-element array when focused, [] when cleared. Errors: OF_WINDOW_UNAVAILABLE (no front window), OF_NOT_FOUND (containerId is neither a project nor a folder). Side effects: changes the user's visible window state; no data caches invalidated. Example: window_set_focus({ containerId: "prj123" }) Example: window_set_focus({ containerId: null })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| containerId | Yes | ProjectId or FolderId to focus the front window on, or null to clear focus. |