From 14ebde93486fb39aafb96a20391a717f1c57b850 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 13 Apr 2026 16:29:20 +0800 Subject: [PATCH] feat: update FileReadTool description to mention image and PDF support Add explicit mention of image (OCR) and PDF (text extraction) support to the FileReadTool description for better discoverability. --- astrbot/core/tools/computer_tools/fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/tools/computer_tools/fs.py b/astrbot/core/tools/computer_tools/fs.py index 8d3160ff5d..b48db0a4f1 100644 --- a/astrbot/core/tools/computer_tools/fs.py +++ b/astrbot/core/tools/computer_tools/fs.py @@ -171,7 +171,7 @@ def _decode_escaped_text(value: str) -> str: @dataclass class FileReadTool(FunctionTool): name: str = "astrbot_file_read_tool" - description: str = "read file content." + description: str = "read file content. Supports text, image (OCR), and PDF (text extraction) files." parameters: dict = field( default_factory=lambda: { "type": "object",