Skip to main content
Glama

Robot Actions — Remote Device Control

Session send keys

session_send_keys

Type text into an element found by session_find_element, addressed by its elementId. It APPENDS — W3C Element Send Keys does not clear the field first, so a second call on the same input concatenates rather than replaces. Clear it yourself (session_execute setting value to an empty string, or a select-all before typing) when you mean to replace. Takes the sessionId that found the element. Works on browser and mobile sessions. Errors when the element is not editable, or when it has gone stale because the page navigated since it was found — re-find it and retry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to type into the element
elementIdYesElement ID from session_find_element
sessionIdYesSession ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Discloses the single most surprising behavioral trait — W3C Element Send Keys APPENDS and does not clear, so repeat calls concatenate — which no annotation conveys. It also enumerates failure modes: element not editable, and stale element after navigation, with the recovery step.

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?

Dense and front-loaded: the append caveat follows immediately after the core action, and remedy plus error conditions come last. Slightly long, but nearly every clause carries decision-relevant information; the parenthetical alternatives could be trimmed.

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

Completeness5/5

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

For a 3-parameter mutating session tool with no output schema and no annotation coverage of semantics, the description covers action, side effects, workaround, session coupling, cross-platform scope, and error recovery. Nothing an agent needs to invoke it correctly is missing.

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 100%, so baseline is 3, but the description adds real constraints beyond the schema: sessionId must be the session that found the element, and elementId refers to an element whose editability and staleness affect success. Only the 'text' parameter gets no extra treatment.

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?

States a specific verb and resource ('Type text into an element') and pins the element identity to the sibling producer session_find_element via elementId. An agent can distinguish it from session_click, session_execute and session_find_element without opening schemas.

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

Usage Guidelines5/5

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

Explicitly tells when to use it (typing into an element already located by session_find_element), the condition that changes the approach (replace vs append), and names the alternative tool for clearing (session_execute setting value to an empty string). Nothing about choosing between siblings is left to inference.

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.

Resources