Files
chatgpt-on-wechat/docs/ja/tools/web-fetch.mdx
2026-05-24 18:29:57 +08:00

33 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: web_fetch - Web 取得
description: Web ページやドキュメントのコンテンツを取得
---
HTTP/HTTPS URL の内容を取得します。Web ページからは可読テキストを抽出し、ドキュメントファイルPDF、Word、Excel など)は自動でダウンロードして解析します。
## パラメータ
| パラメータ | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `url` | string | はい | HTTP/HTTPS URLWeb ページまたはドキュメント) |
## 対応ファイル形式
| 種別 | 形式 |
| --- | --- |
| PDF | `.pdf` |
| Word | `.docx` |
| テキスト | `.txt`、`.md`、`.csv`、`.log` |
| 表計算 | `.xls`、`.xlsx` |
| プレゼン | `.ppt`、`.pptx` |
## ユースケース
- Web ページの可読テキストを抽出する
- リモートドキュメントのダウンロードと解析
- API レスポンスの確認
<Note>
`web_fetch` は静的 HTML のみ取得できます。JavaScript レンダリングが必要なページSPA など)は `browser` ツールを使用してください。
</Note>