Skip to main content
Glama

Find in view-source

view_source_find

Fetch a page's raw HTML as a browser does and return matched line numbers and text, with optional highlighting, so you can cite findings without taking a screenshot.

Instructions

Fetch a page's raw HTML the way a browser does and return the line numbers and text of matches, without taking a screenshot.

Input Schema

NameRequiredDescriptionDefault
urlYesPage URL to read the raw HTML source of.
linesNoLine numbers to highlight in full.
matchNoText to highlight. Plain text also matches its JSON-escaped form (/ as \/). Prefix with "re:" for a regex.
hide_paramsNoQuery parameter names to keep out of the view-source header (they are still sent with the request), e.g. preview or auth tokens.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the disclosure burden and does well: it explains that the page is fetched like a browser, that raw HTML is used, and that matches are returned as line numbers and text. It leaves out authentication, error, or rate-limit behavior, but covers the core read behavior clearly.

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?

It is a single front-loaded sentence with no wasted words. The key behavior and sibling contrast are both conveyed efficiently.

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 four-parameter tool with no output schema and no annotations, the description gives enough context about the return shape and the browser-like fetch method. It does not explain output formatting or failure modes, but it covers what an agent needs to select and invoke the tool correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the input schema already documents url, lines, match, and hide_params. The description aligns with the match/line-number behavior but adds no parameter meaning beyond what the schema provides.

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 states a specific verb and resource: fetch a page's raw HTML, then return line numbers and text of matches. The phrase 'without taking a screenshot' distinguishes it from the sibling view_source_screenshot tool.

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 mention of not taking a screenshot implies this is the source-inspection alternative to view_source_screenshot, but it does not explicitly say when to choose this tool versus the screenshot tool. Usage is implied rather than stated.

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