Logotipo de Web Fetch

Web Fetch

Organización
runxhq
web-fetch

Fetch and extract one public web source, optionally restrict its hosts, and return the content by digest with full provenance.

Descripción general

Editorrunxhq
Repositoriorunx
Nombre de la habilidadweb-fetch
Estrellas
105
Forks
109
Archivos incluidos
4
LicenciaApache-2.0
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 4

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por runxhq en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Web Fetch en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/runxhq/runx/tree/main/skills/web-fetch
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/runxhq/runx.git /tmp/runx
mkdir -p .claude/skills
cp -r /tmp/runx/skills/web-fetch .claude/skills/web-fetch
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Web Fetch en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Web Fetch automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Web Fetch no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Web Fetch

Fetch one URL, prove it was allowed, extract the part the caller asked for, and return that slice by digest with the provenance needed to trust it later.

What this skill does

web-fetch retrieves a single public URL, extracts text, metadata, or links, and seals the result so a downstream step can cite the fetch without re-fetching. It checks the final host against the effective host policy before and after redirects, reads the page whole, and returns the final URL, the HTTP status, a content_digest over the retrieved body, the extracted slice, and a provenance block recording when it ran, every redirect hop, and how many bytes it read. The body is referenced by digest; only the extracted slice is inlined.

This is the primitive an agent reaches for when it has already decided which page to read. The decision it makes easier is "can I read this page, and what did it actually say", with the answer backed by a digest instead of a remembered paraphrase. The calling agent decides which sources matter and synthesizes across them; web-fetch retrieves exactly one source. By default it may follow that source across any publicly routable host. Supply allowlist only when the operator needs to narrow the initial request and every redirect to named hosts.

The request path is native Runx code. Skills do not supply a JavaScript HTTP client: the runtime owns public-network enforcement, redirect admission, timeouts, retries, the operator's page ceiling, response digests, and receipt-safe evidence.

When to use this skill

  • An agent has chosen a specific page and needs its content bound to a content_digest so a later step can cite it without re-fetching.
  • A research pass needs each source retrieved through one bounded public-network fetch with a complete redirect chain and byte count.
  • A review must later prove what a page said at fetch time.
  • A follow-on governed operation needs one source extracted as text, metadata, or links.

When not to use this skill

  • To judge, rank, or synthesize across sources. That remains caller reasoning; web-fetch retrieves exactly one source and refuses to reason over many.
  • To reach a private, loopback, link-local, or otherwise non-public address.
  • To reach a host outside an explicitly supplied allowlist, including a host reached only through a redirect.
  • To write anything. The only scope is web.read; there is no repo, file, wallet, or send authority here.
  • To inline a large raw body. The extracted slice is the payload; the full body lives behind content_digest.
  • To carry credentials, cookies, or custom authorization headers. Use the appropriate authenticated provider capability for those reads.

Procedure

  1. Require url at runner preflight. A missing target fails before the graph starts with the exact missing input.
  2. Use allowlist: ["*"] when the caller omits it, meaning any publicly routable host. A caller-supplied allowlist narrows that default. Match the URL host against the effective allowlist. On a miss, return policy_denied before any network call, recording the attempted host and the allowlist it was checked against.
  3. Fetch, following redirects, re-checking each redirect target's host against the same allowlist. A redirect that lands off-allowlist halts the fetch, fails with policy_denied naming the hop that failed. The page is read whole: a page larger than the operator's ceiling (RUNX_WEB_READ_MAX_BYTES, 64 MiB by default) fails with response_too_large instead of being cut.
  4. Compute content_digest over the retrieved body.
  5. Extract per extract: text (readable body text, default), metadata (title, description, canonical, declared language, content type), links (absolute hrefs found in the document), or json (the body as one JSON document).
  6. Return the provider_operation packet whose result holds the final URL, status, digest, extracted slice, and provenance. A refused URL, a transport failure, or a non-2xx answer fails the step; no result stands for a page that was not read.

Edge cases and stop conditions

  • Missing url: fail runner preflight; do not start or seal an empty fetch.
  • Omitted allowlist: use ["*"]; private-network protection still applies.
  • Host off the allowlist: stop with policy_denied before any network call; record the attempted host, not a response body (there is none).
  • Redirect off the allowlist: halt the fetch, return policy_denied naming the hop that failed, and discard the partial body.
  • Page past the ceiling: fail with response_too_large; the operator raises RUNX_WEB_READ_MAX_BYTES to read it. A partial page is never returned.
  • Large raw body: never inline beyond the extracted slice; anything bigger than the requested view is reachable only through content_digest.
  • Authenticated source: stop and use the relevant provider read skill; this public fetch does not accept credentials or custom headers.

Output schema

yaml
provider_operation:
  data:
    provider: web
    operation: page.read
    result:
      final_url: string            # URL after redirects, the one the digest is over
      status: number               # HTTP status of the final response
      content_digest: string       # digest of the body, algorithm prefix included
      extract_mode: text | metadata | links | json
      extracted: string | object | array   # text, metadata object, hrefs, or the JSON document
      provenance:
        fetched_at: string         # timestamp of the fetch
        redirects: array           # ordered hops, each re-checked against the allowlist
        bytes: number              # bytes read

The sealed runx.receipt.v1 carries the final URL, status, content_digest, byte count, and the redirect chain. A denied host fails the step with policy_denied before any request leaves. The receipt carries no header values, no cookies, and no raw body beyond the digest.

Worked example

Input: url of the HTTP Semantics RFC, an allowlist of www.rfc-editor.org and rfc-editor.org, and extract: text.

Output: the host matched the allowlist before the request left; no redirects; status 200; content_digest is taken over the whole body; extracted holds the readable text slice; provenance records fetched_at, an empty redirect chain, and 184302 bytes. The receipt seals with the final URL, status, digest, and byte count; no header value reaches it.

Inputs

  • url (required): the single public HTTP(S) URL to fetch.
  • allowlist (optional): permitted hosts or host patterns for the URL and every redirect target. Omit it for ["*"], meaning any publicly routable host.
  • extract (optional): text, metadata, links, or json. Defaults to text.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Web Fetch?

Fetch and extract one public web source, optionally restrict its hosts, and return the content by digest with full provenance.

¿Por qué usar Web Fetch en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Web Fetch está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Web Fetch en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/runxhq/runx/tree/main/skills/web-fetch. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Web Fetch?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Web Fetch?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Web Fetch con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Web Fetch?

Sí. runxhq la ha publicado en GitHub bajo la licencia Apache-2.0. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇