Skip to main content
Glama
rodoni
by rodoni

get_selected_element

Retrieves the last element clicked in the browser, returning its tag, ID, classes, attributes, text, and ranked Robot Framework locators with ready-to-use keywords.

Instructions

Recupera o último elemento selecionado/clicado pelo usuário no navegador. Retorna metadados completos (tag, id, classes, atributos, texto), além de locators ranqueados para Robot Framework (Browser Library e SeleniumLibrary) e keywords prontas.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral transparency burden. It transparently reports what is returned and makes the read-only, stateful nature of the operation clear. It does not disclose edge cases like what happens when no element has been selected or whether the returned data may be stale.

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

Conciseness5/5

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

Two dense, well-organized sentences: the first states the action, the second lists the returned artifacts. There is no filler, repetition, or unnecessary detail.

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 parameterless read-only tool with an output schema, the description sufficiently covers purpose and return values. It leaves only the no-selection edge case and prerequisite user interaction implicit, which prevents a perfect score.

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?

The tool has zero parameters and schema coverage is 100%, so there is nothing for the description to clarify. The baseline 4 applies because no parameter documentation is needed.

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 clearly identifies the operation: it retrieves the last element the user selected or clicked in the browser. It also specifies the output content (metadata, locators, keywords), making the tool's purpose easy to grasp. However, it does not explicitly distinguish itself from siblings like get_selection_history or scan_elements.

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?

The intended use is implicitly clear: call this tool when you need the last user-selected element and its Robot Framework locators. There is no explicit when-to-use/when-not-to-use guidance or mention of alternatives such as get_selection_history, so the guidance is only implied.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rodoni/dom-explorer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server