Skip to main content
Glama

css.get_stylesheet_text

Read-only

Retrieve the source text of one stylesheet as a stored artifact, optionally saving it to a file for inspection, auditing, or debugging CSS rules.

Instructions

Source text of one stylesheet, stored as an artifact.

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": {
      "style_sheet_id": "<style_sheet_id>"
    },
    "name": "css.get_stylesheet_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
save_pathNo
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
style_sheet_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description does add genuinely useful context that the output is persisted as an artifact rather than returned inline, but it omits how the artifact is identified, whether the text may be truncated, and any auth/target requirements beyond 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?

A single short clause with zero filler, and the key fact (artifact storage) is front-loaded. It is arguably too terse rather than bloated, which is a completeness problem rather than a conciseness one.

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

Completeness2/5

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

For a 4-parameter tool with no output schema, the definition leaves too much unsaid: which parameter selects the stylesheet, what save_path does, and how to retrieve the artifact afterward. The artifact hint helps but does not close the gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: target_id and browser_id are documented in the schema, but style_sheet_id and save_path are bare. The description only vaguely implies a single stylesheet identifier and says nothing about save_path, so it fails to compensate for the coverage gap.

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 identifies a specific resource (the source text of a single stylesheet) and its output form (an artifact), which distinguishes it from siblings like css.computed or css.matched_rules that return derived CSS data. It reads as a noun phrase without an explicit verb, but the intent is unambiguous.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over css.computed, css.matched_rules, or css.list_stylesheets, and no note that the result must be fetched via artifact.read. The agent must infer the selection criteria entirely from sibling names.

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

Deploy Server

Other Tools