← Back to Skills Marketplace
suda6632

Tool结果大小控制器

by suda6632 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
118
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install tool-result-size-controller
Description
自动判断工具结果大小,超阈值时gzip压缩落盘并返回文件元数据,保护对话上下文窗口免受大数据干扰
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install tool-result-size-controller
  3. After installation, invoke the skill by name or use /tool-result-size-controller
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
基于Claude Code maxResultSizeChars机制的大结果自动落盘
Metadata
Slug tool-result-size-controller
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Tool结果大小控制器?

自动判断工具结果大小,超阈值时gzip压缩落盘并返回文件元数据,保护对话上下文窗口免受大数据干扰. It is an AI Agent Skill for Claude Code / OpenClaw, with 118 downloads so far.

How do I install Tool结果大小控制器?

Run "/install tool-result-size-controller" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Tool结果大小控制器 free?

Yes, Tool结果大小控制器 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Tool结果大小控制器 support?

Tool结果大小控制器 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Tool结果大小控制器?

It is built and maintained by suda6632 (@suda6632); the current version is v1.0.0.

💬 Comments