feat: docs update

This commit is contained in:
zhayujie
2026-02-27 16:03:47 +08:00
parent d891312032
commit 6db22827f2
97 changed files with 2801 additions and 1354 deletions

26
docs/tools/read.mdx Normal file
View File

@@ -0,0 +1,26 @@
---
title: read - 文件读取
description: 读取文件内容
---
# read
读取文件内容。支持文本文件、PDF 文件、图片(返回元数据)等格式。
## 依赖
无额外依赖,默认可用。
## 参数
| 参数 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| `path` | string | 是 | 文件路径,相对路径基于工作空间目录 |
| `offset` | integer | 否 | 起始行号1-indexed负值表示从末尾读取 |
| `limit` | integer | 否 | 读取行数 |
## 使用场景
- 查看配置文件、日志文件
- 读取代码文件进行分析
- 检查图片/视频的文件信息