press_element
Press one key while an accessible page element is focused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | One key name, such as Tab or Enter. | |
| job_id | Yes | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Press one key while an accessible page element is focused.
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | One key name, such as Tab or Enter. | |
| job_id | Yes | ||
| target | Yes |
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=true, so the safety profile is covered. The description adds one useful behavioral precondition — the target element must already be focused — but says nothing about side effects, auth needs, or whether the press can trigger navigation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single tight sentence with the verb front-loaded and zero filler. It is appropriately sized for a simple action, though it could carry one more clause of routing or precondition detail without bloating.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return values need not be described. Still, for a destructive-hinted action against a browser page, the definition omits how the target session (job_id) is scoped and whether focus must be established beforehand, leaving modest gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is only 33%, with job_id completely undocumented in both schema and description. However, the schema's own ActionTarget and key descriptions are rich, and the description's 'one key' constraint reinforces the single-key restriction beyond the key field text.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (Press) and resource (one key on a focused accessible element), which is clear and actionable. It implicitly distinguishes itself from the sibling press_keys by saying 'one key,' but it never names that alternative outright, so full sibling differentiation is left to inference.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance, no exclusions, and no mention of when to choose this over press_keys, click_element, or type_text. The agent must infer the selection conditions entirely.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.