Read an existing document
read_documentRead a local document and return normalized text: CSV/TSV become Markdown tables, HTML/XML tags are stripped, JSON is pretty-printed. Unsupported PDF/DOCX/XLSX files return a workaround.
Instructions
手元の既存ドキュメント(.txt/.md/.csv/.tsv/.json/.html/.xml)を読み、形式に応じて正規化したテキストを返す。CSV/TSV は Markdown 表に、HTML/XML はタグ除去、JSON は整形または構造要約。PDF/docx/xlsx は未対応(回避策を返す)。 / Read a local document (.txt/.md/.csv/.tsv/.json/.html/.xml) and return normalized text: CSV/TSV as a Markdown table, HTML/XML with tags stripped, JSON pretty-printed or outlined. PDF/docx/xlsx are unsupported and return a workaround.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | 出力言語 / Output language | both |
| path | Yes | 読み込むファイルの絶対パス(作業ディレクトリ / データディレクトリ / ホーム配下のみ。隠しディレクトリ配下は不可。最大 1,024 文字) / Absolute path of the file (must sit under the working directory, the data directory, or your home directory; hidden directories are excluded; at most 1,024 characters) | |
| maxChars | No | 返す最大文字数(超えた分は切り詰めた旨を明示) / Maximum characters to return; truncation is always reported |