Skip to main content
Glama

desktop_focus_element

Focus a specified UI element so an AI agent can type into it, overcoming browser fields that block input until focused. Verify the focused state afterward.

Instructions

Request element focus for agent input; owned browser fields refuse active/unknown composition before focus. Native application callbacks can still change human focus. Inspect to confirm focused state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
element_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.4
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description must carry behavioral disclosure, and it does: focus is only 'requested', not guaranteed, native callbacks can override it, and verification via inspect is required. The phrase about 'active/unknown composition' adds context but is somewhat opaque.

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

Conciseness4/5

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

Three sentences with the primary purpose front-loaded makes this compact and mostly efficient. The middle sentence is terse but jargon-heavy, which slightly hurts readability without adding enough explanation.

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?

For a simple one-parameter focus operation with no output schema, the description covers the purpose, a key reliability caveat, and a verification step. The main gap is element_id semantics, but the tool is simple enough that an agent can likely use it correctly with inspection.

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

Parameters2/5

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

The schema has one required parameter, element_id, with no description coverage. The tool description never explains where element_id comes from or how it should be formatted, so the description does not compensate for the missing parameter semantics.

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

Purpose4/5

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

The opening phrase 'Request element focus for agent input' names a concrete verb and resource, and adds the useful qualifier that this is for agent input. It is not explicitly contrasted with sibling tools like desktop_activate or desktop_hover, but the focus-specific purpose is clear enough to distinguish it.

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?

The description gives clear context for when to use it: before agent input, especially for owned browser fields that may refuse composition before focus. It also tells the agent to follow up with inspect to confirm the focused state, though it does not name explicit alternatives or exclusions.

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