Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Save the open page's full text to a file (read-only)

page_text

Write the text of the currently open page, such as a view-source document, to a local file and return its path to read embedded data through the browser session.

Instructions

Write the text of the page document now open (leaf by leaf, in document order) to a local file and return its path. Built for a view-source: page, so a store's embedded product data can be read through this browser session. Read-only: nothing is clicked, typed or navigated.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "page_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
from_endNoRead from the document's end back (a page's embedded app data usually closes it); the text returned is still in page order.
max_charsNo
window_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares the tool read-only, explains the extraction order (leaf by leaf, document order) and states the return value is a file path. It omits where the file is written or whether an existing file is overwritten, which matters for a write-to-disk tool.

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?

Three tight sentences with the core action front-loaded, followed by the scope rationale and the safety profile. No sentence is filler.

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

Completeness3/5

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

The output shape, ordering behavior and read-only guarantee are covered, which is good for a 3-parameter extraction tool with no output schema. The gap is parameter coverage — two of three inputs get no explanation anywhere, so the definition is not complete enough to invoke confidently with those options.

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?

Only from_end has schema documentation; max_chars and window_address are undocumented at 33% coverage and the description adds nothing about any of them. window_address in particular is left entirely unexplained — an agent cannot tell what value it expects or why.

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?

States a specific verb and resource — write the open page's text, leaf by leaf in document order, to a local file and return its path. It implicitly separates itself from read_page by producing a file rather than inline content, but never names a sibling explicitly.

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?

Gives a concrete usage context: built for a view-source: page so embedded product data can be read through this browser session. It also implicitly excludes interaction tools by stating nothing is clicked, typed or navigated, but it never names read_page as the alternative for plain text retrieval.

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