Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Type into a field by ref or by name

type_into_element

Focus a text field by element reference or accessible label, then click, optionally clear, type the value, and optionally submit in one call. Use it to fill search boxes and forms efficiently.

Instructions

Focus a text field (by ref from read_page, or by matching its accessible name/label) and type into it in one call — finds, clicks, optionally clears, types, and optionally submits. This is the efficient path for 'fill in the search box and search'.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "value": "<value>"
    },
    "name": "type_into_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
roleNo
textNoAccessible name/label to search for, if not using ref.
clearNoSelect-all and delete existing content first.
valueYesText to type.
press_enterNoPress Return after typing (e.g. to submit a search).
window_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the internal sequence: it finds, clicks, optionally clears, types, and optionally submits. That is real behavioral value. It omits what happens on failure or multiple matches, and does not warn that clearing existing content is the default behavior — a materially destructive side effect for a field that already holds text.

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?

A single dense sentence with the compound behavior front-loaded and the practical use case appended. Every clause carries information; nothing is padding. Slightly long, but the length is justified by the number of steps it describes.

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

Completeness3/5

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

For a 7-parameter mutation tool with no annotations and no output schema, the description covers the happy-path sequence and both targeting modes well. It leaves out error behavior, the role/window_address parameters, and any caution about clearing existing content, which an agent would need before calling it on a pre-populated field.

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

Parameters4/5

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

Schema coverage is 57%, and the description compensates by explaining that ref comes from read_page and that the alternative targeting is by accessible name/label. It also maps 'optionally submits' to the press_enter flag without restating it. The role and window_address parameters remain unexplained in both schema and description, which keeps this below a 5.

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 description gives a specific verb and resource — focus a text field and type into it — and explains both targeting modes (ref from read_page, or accessible name/label). It does not distinguish itself from siblings like type_text or focus_field, so an agent cannot tell from the text alone why it should pick this over those.

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

Usage Guidelines3/5

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

'This is the efficient path for fill in the search box and search' gives a concrete scenario and implicitly contrasts with a multi-call approach (focus, click, type). However, there are no explicit when-not conditions and no sibling is named, so the agent must infer the boundary with type_text and focus_field on its own.

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