Web Fetchのロゴ

Web Fetch

組織
runxhq
web-fetch

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

概要

公開者runxhq
リポジトリrunx
スキル名web-fetch
スター
105
フォーク
109
同梱ファイル
4
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 4個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    runxhqがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Web Fetch」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/runxhq/runx/tree/main/skills/web-fetch
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでWeb Fetchを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にWeb Fetchを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Web Fetchは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Web Fetch」では何ができますか?

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

TypingMindでWeb Fetchを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Web Fetchはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにWeb Fetchをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/runxhq/runx/tree/main/skills/web-fetchを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Web Fetchを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Web Fetchで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもWeb Fetchを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Web Fetch」は無料ですか?

はい。runxhqがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇