docs/internal/webfetchhelp.md

internal/webfetchhelp: shared command help

This package embeds help once for both the WebFetch CLI and builtin meta:webfetch-help* buffers. It has no networking dependency. The command guide covers invocation; the internal guide covers code organization.

Canonical sections

SectionAsset and meta suffix
Generaltext/general.txt, no suffix
HTTPtext/http.txt, /http
HTMLtext/html.txt, /html
WebSockettext/websocket.txt, /websocket
Framed recordstext/framed.txt, /framed
MCPtext/mcp.txt, /mcp
AggregateAll(), /all

help.go assembles the sections in this order and appends a Go-defined footer. --help-all includes MCP; it has no separate CLI help flag. Meta names match exactly, and the footer isn't separately addressable. Skills consume these references rather than owning duplicate manuals. The Ruby reference owns adapter signatures, not protocol implementation details.

Editing and checks

Assets must remain nonempty UTF-8 without ANSI escapes and end with LF. Preserve aggregate ordering, spacing, and final LF. CLI information requests are operation-free; builtin buffers are static and read-only. A text edit intentionally changes both consumers' canonical bytes.

Help wording and assembly belong here. Consumers map information options and meta: names in internal/webfetch/help.go and builtin/buffer/meta.go. CLI parsing and exits belong to options.go and run.go; HTTP, HTML, WebSocket, and MCP behavior belongs to webfetch. Framed grammar is defined in websocket_framed.go and text/framed.txt.

Tests in help_test.go check asset validity and assembly. run_test.go checks operation-free CLI delivery; tool_buffer_webfetch_meta_test.go checks identical bytes, range reads, read-only access, and unknown names. These tests protect shared delivery and core contracts, not the wording of a complete manual.