Skip to main content
Glama

ax_focus

Move keyboard focus to an on-screen control by matching its accessibility role or label. Works on macOS native apps.

Instructions

Move keyboard focus to a control through the OS accessibility tree (macOS Accessibility; not yet implemented on Windows, where it returns a clear error). Background, no cursor. query matches the element's role/label. Targets the last window-captured app (or frontmost). Native-app accessibility only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesCase-insensitive substring matching the target element's accessibility role or label/title (e.g. "Send", "Search", "AXButton").
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Without annotations, describes key behaviors: background operation, no cursor movement, query matching, target selection (last window-captured app), and error handling on Windows. Missing success/failure details for macOS.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three concise sentences, each adding distinct value: action, platform constraints, query behavior. No redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, annotations, and one parameter, the description covers purpose, platform, target selection, and query matching. Could mention behavior on multiple matches, but adequate for a simple tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with clear description for 'query'. The tool description adds no new information about the parameter beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool moves keyboard focus via the OS accessibility tree, with specific verb 'move' and resource 'control'. It distinguishes from siblings like ax_click (click) and dump_ax (dump tree) by focusing solely on focus manipulation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides context on when to use: background, no cursor, native-app accessibility only, and platform limitations (macOS vs Windows). Does not explicitly state when not to use but implies constraints.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bigduu/Nova'

If you have feedback or need assistance with the MCP directory API, please join our Discord server