← 返回 Skills 市场
118
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install tool-result-size-controller
功能描述
自动判断工具结果大小,超阈值时gzip压缩落盘并返回文件元数据,保护对话上下文窗口免受大数据干扰
安全使用建议
This skill appears to do what it says: compress and spill large tool results to disk and return metadata. Before installing, check these practical points: 1) Path and permissions — the code writes to ~/.openclaw/workspace/tmp/tool-results (not the relative tmp/tool-results shown in the docs); ensure the agent has explicit permission to read/write that directory and that its location is acceptable. 2) Data sensitivity — spilled files (and the 500‑char preview) can contain sensitive data; if that is a concern, change RESULTS_DIR to a secure location, raise the threshold, or shorten retention. 3) Retention/cleanup — cleanup deletes files older than MAX_AGE_DAYS; configure cron or run cleanup regularly. 4) Minor doc mismatch — logs referenced in SKILL.md are not implemented in code; adjust expectations. No network calls, no secret access, and no external installers were found.
功能分析
Type: OpenClaw Skill
Name: tool-result-size-controller
Version: 1.0.0
The skill provides a utility to manage large tool outputs by automatically saving them to a local directory (~/.openclaw/workspace/tmp/tool-results) when they exceed a character threshold, preventing token overflow in the agent's context. The implementation in tool_result_size_controller.py uses standard Python libraries for file I/O and gzip compression, and it includes a legitimate cleanup function for old results. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
The code and SKILL.md both implement spilling large tool results to disk, gzip compression, returning metadata, previewing the first 500 chars, and a cleanup routine. The requested capabilities match the stated purpose.
Instruction Scope
SKILL.md usage and API (maybe_spill, load_spilled_result, cleanup_old_results, decorator) matches the code. Minor discrepancy: SKILL.md lists RESULTS_DIR as `tmp/tool-results/` and examples/permissions refer to that path and a logs file, but the code actually writes to a per-user path: ~/.openclaw/workspace/tmp/tool-results. SKILL.md also mentions a logs file (`logs/tool-size.log`) that is not implemented in the code.
Install Mechanism
No install spec or external downloads; the skill is instruction+source only and uses only standard library modules (json, gzip, hashlib, pathlib, datetime). No elevated install risk detected.
Credentials
The skill requests no environment variables or credentials. It writes files under the user's home directory (RESULTS_DIR), which is proportional to its purpose but does require file system write/read permissions.
Persistence & Privilege
The skill does persist files to disk and deletes files older than MAX_AGE_DAYS. It is not always-enabled and does not modify other skills or system-wide configs. Because it stores potentially sensitive tool outputs on disk, consider access controls for the results directory.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install tool-result-size-controller - 安装完成后,直接呼叫该 Skill 的名称或使用
/tool-result-size-controller触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
基于Claude Code maxResultSizeChars机制的大结果自动落盘
元数据
常见问题
Tool结果大小控制器 是什么?
自动判断工具结果大小,超阈值时gzip压缩落盘并返回文件元数据,保护对话上下文窗口免受大数据干扰. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 118 次。
如何安装 Tool结果大小控制器?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install tool-result-size-controller」即可一键安装,无需额外配置。
Tool结果大小控制器 是免费的吗?
是的,Tool结果大小控制器 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Tool结果大小控制器 支持哪些平台?
Tool结果大小控制器 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Tool结果大小控制器?
由 suda6632(@suda6632)开发并维护,当前版本 v1.0.0。
推荐 Skills