Skip to main content
Glama

style_diff

Record baseline styles of an element, apply a change, and compare to see only the modified CSS properties.

Instructions

BEFORE/AFTER comparison for one element: record its styles into a named slot, change something, compare — only the properties that changed are reported. Reach for it whenever you ask 'did my fix actually change anything?' or need to prove what an edit / inject_css patch / viewport change / interaction altered. The loop: style_diff{mode:'record'} → apply the change → style_diff{mode:'compare'}. Confirms a fix moved exactly the property you intended, and nothing else.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoViewport x coordinate — use together with y
yNoViewport y coordinate — use together with x
uidNoElement uid from a prior page_snapshot / find_elements
modeYesrecord: store baseline. compare: diff against it
slotNoRecording slot name — omit the target on compare to reuse the recorded onedefault
selectorNoCSS selector (first match) — alternative to uid
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the recording slot mechanism and that compare only reports changed properties. However, it does not mention edge cases (e.g., missing prior record, element not found) or any destructive effects.

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?

The description is concise (3-4 sentences) with no filler words. It front-loads the purpose and quickly explains the usage pattern in a structured way.

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?

Given 6 parameters, no output schema, and no annotations, the description does a good job explaining the core workflow and use case. It could be more complete by mentioning error handling or slot behavior, but it is sufficient for most scenarios.

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%, but the description adds additional meaning by explaining the workflow and the purpose of the slot parameter ('named slot'). It also implies how uid and selector are used in the context of recording and comparing.

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?

The description clearly states it performs a BEFORE/AFTER comparison for one element, recording styles into a named slot and comparing to show only changed properties. It uses specific verbs ('record', 'compare') and distinguishes from sibling tools like check_alignment or explain_styles.

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

Usage Guidelines4/5

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

The description gives explicit guidance on when to use it ('did my fix actually change anything?') and provides a concrete usage loop (record → apply change → compare). It does not explicitly list alternatives or when not to use it, but the context is clear.

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

Install Server

Other Tools

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/mi60dev/visionaire-engine'

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