Files
chatgpt-on-wechat/docs/ja/tools/read.mdx
2026-03-18 19:13:39 +09:00

25 lines
902 B
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: read - ファイル読み取り
description: ファイル内容の読み取り
---
ファイルの内容を読み取ります。テキストファイル、PDFファイル、画像メタデータを返すなどに対応しています。
## 依存関係
追加の依存関係は不要で、デフォルトで利用可能です。
## パラメータ
| パラメータ | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `path` | string | はい | ファイルパス。相対パスはワークスペースディレクトリを基準とします |
| `offset` | integer | いいえ | 開始行番号1始まり。負の値は末尾からの読み取り |
| `limit` | integer | いいえ | 読み取る行数 |
## ユースケース
- 設定ファイルやログファイルの閲覧
- コードファイルの読み取りと分析
- 画像・動画ファイルの情報確認