Skip to main content
Glama

type

Type into a text field by ref (replaces its content). Returns the new screen, or only the lines that changed. The result starts with 'Change: none | content changed | new screen | scrolled'. Also gives the field's value after typing.

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": {
      "session": "<session>",
      "ref": "<ref>",
      "text": "<text>"
    },
    "name": "type"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesElement ref from the screen, e.g. e42. After a restart refs can carry a prefix, such as f1e42; use them exactly as the screen shows them.
textYes
enterNoPress Enter afterwards
secretNotrue: the text is a password, a one-time code or another secret. It is typed, and kept out of the result, the watch page, the room log and exported tests. Password fields are treated this way without it.
settleNoWait until the screen stops changing (two equal reads 100 ms apart), up to timeout_ms. Use after any action that starts work. A slow result can still follow a pause, so prefer wait_for when you know the expected text.
compactNoWhen the change is 'content changed', the result lists only the lines that changed (+ added, - removed, ~ changed), with refs as on the full screen. This is the default. Pass false to get the whole screen.
sessionYesSession from open_app
wait_forNoUse after any action that starts work. Wait until this appears (a ref, a text, or role+name), or disappears with gone: true. The result says Waited: matched or timed out.
timeout_msNoHow long wait_for and settle may take, in ms (default 2000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / secret
      Added value: +{
      +  "description": "true: the text is a password, a one-time code or another secret. It is typed, and kept out of the result, the watch page, the room log and exported tests. Password fields are treated this way without it.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / compact / description
      Previous value: -"When the change is 'content changed', return only the added/removed lines, not the whole screen"New value: +"When the change is 'content changed', the result lists only the lines that changed (+ added, - removed, ~ changed), with refs as on the full screen. This is the default. Pass false to get the whole screen."
  3. Changed3 schema fields changed
    • changedInput schema / properties / ref / description
      Previous value: -"Element ref from the screen, e.g. e42"New value: +"Element ref from the screen, e.g. e42. After a restart refs can carry a prefix, such as f1e42; use them exactly as the screen shows them."
    • changedInput schema / properties / ref / pattern
      Previous value: -"^e\\d+$"New value: +"^(?:p\\d+|f\\d+)?e\\d+$"
    • changedInput schema / properties / wait_for / properties / ref / pattern
      Previous value: -"^e\\d+$"New value: +"^(?:p\\d+|f\\d+)?e\\d+$"
  4. Changed4 schema fields changed
    • addedInput schema / properties / compact
      Added value: +{
      +  "description": "When the change is 'content changed', return only the added/removed lines, not the whole screen",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / settle
      Added value: +{
      +  "description": "Wait until the screen stops changing (two equal reads 100 ms apart), up to timeout_ms. Use after any action that starts work. A slow result can still follow a pause, so prefer wait_for when you know the expected text.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / timeout_ms
      Added value: +{
      +  "description": "How long wait_for and settle may take, in ms (default 2000)",
      +  "maximum": 30000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / wait_for
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Use after any action that starts work. Wait until this appears (a ref, a text, or role+name), or disappears with gone: true. The result says Waited: matched or timed out.",
      +  "properties": {
      +    "gone": {
      +      "type": "boolean"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "ref": {
      +      "pattern": "^e\\d+$",
      +      "type": "string"
      +    },
      +    "role": {
      +      "type": "string"
      +    },
      +    "text": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  5. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false, so the description carries useful extra weight: it warns that typing replaces existing field content, and it explains the result's leading 'Change:' status values (none/content changed/new screen/scrolled) and that the field's post-typing value is returned. Not fully complete — failure/timeout behavior at the screen level is left to the schema.

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 short sentences, front-loaded with the action and its content-replacement caveat, then the return shape. The enumerated 'Change:' values are dense but earn their place since no output schema exists; minimal waste overall.

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 9-parameter tool with a nested wait_for object and no output schema, the description does the essential work of describing the return payload and its leading status token, while parameters are well covered in the schema. It stops short of covering error/timeout outcomes for the typing action itself, but nothing critical for correct invocation is missing.

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 description coverage is 89%, so the schema already explains ref, secret, settle, compact, wait_for and timeout_ms thoroughly. The description only echoes the ref and text semantics ('by ref', 'replaces its content') without adding format or edge-case detail beyond what the schema states. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource ('Type into a text field by ref') plus a key semantic detail ('replaces its content'), so the agent knows exactly what the operation does. It does not differentiate itself from the sibling browser_type, leaving selection between the two ambiguous.

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?

Usage is only implied: 'by ref' suggests the element ref comes from a prior screen read, but the description never says when to prefer this over browser_type or other interaction tools. The richer when-to-use guidance ('use after any action that starts work', 'prefer wait_for when you know the expected text') lives in the schema parameter descriptions, not the tool description.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.