Feishu IM Read
用于获取飞书聊天记录、话题回复及资源下载的自动化工具。
支持10MB内ZIP/GZIP压缩与解压,适用于多文件打包及自动化处理。
openclaw skills install @agentpmt/zip-unzip-file-compression-10mb命令、参数、文件名以原文为准
最后更新:2026-06-23。
如果当前日期比上次更新日期晚超过7天,请在依赖端点、模式、设置步骤或示例前,从 skills.sh 或 ClawHub 重新安装此技能。
文件压缩与解压工具,支持 ZIP 和 GZIP 格式,适用于大小不超过 10MB 的归档文件。该功能支持两种主要操作:压缩和解压,允许用户将多个文件打包为单个 ZIP 归档文件,或使用 GZIP 压缩单个文件;同时也能提取现有归档文件的内容。对于 ZIP 压缩,用户需提供包含文件名和 Base64 编码内容的文件数组,每份归档最多支持 200 个文件,并具备内置路径遍历防护以保障安全。对于 GZIP 操作,用户需提供一个 Base64 编码的输入数据及可选的文件名。解压操作可通过 Base64 编码的归档文件或云存储文件 ID 提供,系统会自动提取所有内容,并可选择将每个文件的 Base64 数据直接返回响应中以便立即处理。提取出的文件和生成的归档文件将存储在云存储中,并通过安全的签名 URL 提供便捷访问。用户可通过开启 include_contents 选项,直接在响应中获取 Base64 输出。结合自动大小校验与基于预算的访问控制,该归档压缩器为代理流程中的标准文件打包与提取工作提供了可靠支持。
使用 ZIP 或 GZIP 格式进行文件压缩与解压。支持最大 10MB 的归档文件,最多包含 200 个文件。输出文件默认在云存储中保留 7 天。
从输入文件创建 ZIP 或 GZIP 归档。
必填字段:
action: "compress"format: "zip"files: 文件对象数组,每个对象包含: - filename (string) - 文件在归档中的名称或路径
- content_base64 (string) - 文件内容的 Base64 编码
可选字段:
filename (string) - 输出 ZIP 文件的名称(默认值:"archive.zip")store_file (boolean) - 是否将输出文件存储至云存储(默认值:true)include_contents (boolean) - 是否在响应中包含归档文件的 Base64 内容(默认值:false)示例:
{
"action": "compress",
"format": "zip",
"files": [
{"filename": "report.txt", "content_base64": "SGVsbG8gV29ybGQ="},
{"filename": "data/notes.csv", "content_base64": "bmFtZSxhZ2UKQWxpY2UsMzA="}
],
"filename": "my_reports.zip"
}对单个文件进行 GZIP 压缩。
必填字段:
action: "compress"format: "gzip"input_base64 (string) - 待压缩文件内容的 Base64 编码可选字段:
filename (string) - 输出文件名称(默认值:"archive.gz")store_file (boolean) - 是否将压缩结果存储至云存储(默认值:true)include_contents (boolean) - 是否在响应中包含压缩后文件的 Base64 内容(默认值:false)示例:
{
"action": "compress",
"format": "gzip",
"input_base64": "TGFyZ2UgdGV4dCBmaWxlIGNvbnRlbnQgaGVyZS4u",
"filename": "logfile.txt.gz"
}从 ZIP 或 GZIP 归档中提取文件。
必填字段:
action: "decompress"format: "zip" - input_base64 (string) - Base64 编码的 ZIP 归档文件
- file_id (string) - 已存储的 ZIP 归档文件 ID
可选字段:
store_file (boolean) - 是否将每个提取的文件存储至云存储(默认值:true)include_contents (boolean) - 是否在响应中包含每个提取文件的 Base64 内容(默认值:false)使用 Base64 输入的示例:
{
"action": "decompress",
"format": "zip",
"input_base64": "UEsDBBQAAAAI...",
"include_contents": true
}使用 file_id 的示例:
{
"action": "decompress",
"format": "zip",
"file_id": "abc123def456"
}必填字段:
action: "decompress"format: "gzip" - input_base64 (string) - Base64 编码的 GZIP 文件
- file_id (string) - 已存储的 GZIP 文件 ID
可选字段:
filename (string) - 解压后输出文件的名称(默认值:"decompressed")store_file (boolean) - 是否将解压后的文件存储至云存储(默认值:true)include_contents (boolean) - 是否在响应中包含解压后内容的 Base64 编码(默认值:false)示例:
{
"action": "decompress",
"format": "gzip",
"file_id": "abc123def456",
"filename": "restored_log.txt"
}compress 接口,设置 format: "zip" 并传入文件数组。signed_url 分享或下载归档文件。decompress 接口,传入已上传归档的 file_id。file_id 和 signed_url,可单独访问。compress 接口,设置 include_contents: true 且 store_file: false,以在响应中直接获取 Base64 编码的归档内容,无需存储。store_file 设置为 true 时,输出文件将在云存储中保留 7 天。file_id 和 signed_url。files 数组,包含每个提取文件的详细信息。Zip / Unzip - 文件压缩 < 10MB 时使用此技能。compress、decompress。file-management,页面:https://clawhub.ai/agentpmt/file-management;skills.sh: npx skills add AgentPMT/agent-skills --skill file-management)本工具未发布类别或行业标签。
完整生成的操作架构:./schema.md。
支持的操作数量:2。
x402 可用性:此产品未启用。
compress(操作别名:compress):从输入文件创建 ZIP 或 GZIP 压缩包。ZIP 最多支持 200 个文件;GZIP 仅压缩单个文件。总大小上限为 10MB。价格:10 积分。参数:archive_format、filename、files、include_contents、input_base64、store_file。decompress(操作别名:decompress):从通过 base64 或文件 ID 提供的 ZIP 或 GZIP 压缩包中提取文件。提取后的文件将存储在云存储中。价格:10 积分。参数:archive_format、file_id、filename、include_contents、input_base64、store_file。请使用上述紧凑型架构进行常规调用。在新生产环境集成前,或当参数、枚举值、嵌套对象、输出或示例不明确时,请优先获取实时详细信息。
agentpmt-tool-search-and-execution,设置 action: "get_schema",tool_id: "zip-unzip-file-compression-10mb"。agentpmt-tool-search-and-execution,设置 action: "get_instructions",tool_id: "zip-unzip-file-compression-10mb";或在已选择该产品工具的情况下,直接调用该产品并设置 action: "get_instructions"。通过主 AgentPMT MCP 服务器查询 MCP 架构:
{
"method": "tools/call",
"params": {
"name": "AgentPMT-Tool-Search-and-Execution",
"arguments": {
"action": "get_schema",
"tool_id": "zip-unzip-file-compression-10mb"
}
}
}获取实时示例时,使用相同的 MCP 工具,参数如下:
{
"action": "get_instructions",
"tool_id": "zip-unzip-file-compression-10mb"
}经过认证的 AgentPMT REST 架构查询请求体:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_schema",
"tool_id": "zip-unzip-file-compression-10mb"
}
}经过认证的 AgentPMT REST 实时示例请求体:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_instructions",
"tool_id": "zip-unzip-file-compression-10mb"
}
}产品别名:zip-unzip-file-compression-10mb
市场页面:https://www.agentpmt.com/marketplace/zip-unzip-file-compression-10mb
../agentpmt-account-mcp-rest-api-setup,连接主 MCP 服务器或 REST API,确保该工具已在所属 Agent Group 中启用。../what-is-agentpmt 了解市场、Agent Group、工作流、MCP、REST 及支付概念。若未安装此产品技能的前置依赖技能,请使用下方下载内容。
核心 AgentPMT 设置技能:
- ClawHub 页面:https://clawhub.ai/agentpmt/what-is-agentpmt
- OpenClaw 安装:openclaw skills install what-is-agentpmt
- skills.sh 安装:npx skills add AgentPMT/agent-skills --skill what-is-agentpmt
- ClawHub 页面:https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup
- OpenClaw 安装:openclaw skills install agentpmt-account-mcp-rest-api-setup
- skills.sh 安装:npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup
skills.sh 安装脚本:
npx skills add AgentPMT/agent-skills --skill what-is-agentpmt
npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup主 AgentPMT MCP 服务器连接后,调用格式如下:
markdown
name: zip-unzip-file-compression-10mb
version: 1.0.0
description: 压缩文件为 ZIP 格式,最大支持 10MB。可对单个或多个文件进行压缩,支持 Base64 编码内容输入。
summary: 用于将文件压缩为 ZIP 格式,适用于小文件打包传输或存储。
tags:
- file compression
- zip
- archive
- 10mb limit
author: AgentPMT
license: MIT
source: https://www.agentpmt.com/marketplace/zip-unzip-file-compression-10mb
此技能用于将文件压缩为 ZIP 格式,支持单个或多个文件的打包操作。压缩后的文件大小限制在 10MB 以内。
include_contents)。store_file)。zip 格式作为归档格式。使用 tools/call 接口调用本技能,工具名称必须与 tools/list 返回的精确名称一致:
{
"method": "tools/call",
"params": {
"name": "zip-unzip-file-compression-10mb",
"arguments": {
"action": "compress",
"archive_format": "zip",
"filename": "example filename",
"files": [
{
"content_base64": "Draft marketing copy to check for banned phrases.",
"filename": "example filename"
}
],
"include_contents": false,
"input_base64": "example input base64",
"store_file": true
}
}
}注意:请确保使用
tools/list返回的准确工具名称,上述名称仅为可读形式参考。
认证后通过 AgentPMT REST API 调用:
{
"name": "zip-unzip-file-compression-10mb",
"parameters": {
"action": "compress",
"archive_format": "zip",
"filename": "example filename",
"files": [
{
"content_base64": "Draft marketing copy to check for banned phrases.",
"filename": "example filename"
}
],
"include_contents": false,
"input_base64": "example input base64",
"store_file": true
}
}| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| action | string | 是 | 操作类型,当前仅支持 compress |
| archive_format | string | 是 | 归档格式,当前仅支持 zip |
| filename | string | 是 | 输出压缩包的文件名(不含扩展名) |
| files | array | 是 | 文件列表,每个元素包含 filename 和 content_base64 |
| include_contents | boolean | 否 | 是否在输出中包含文件内容(默认为 false) |
| input_base64 | string | 否 | 输入数据的 Base64 编码字符串(如需处理原始数据) |
| store_file | boolean | 否 | 是否将生成的压缩文件保存至系统(默认为 true) |
passed 或类似成功标志的布尔值,应将其作为流程继续的判断依据。get_schema 或 get_instructions 获取规范。compress 操作失败,应保留原始请求参数,并仅在修复 schema、认证或支付问题后重试。setup 技能完成;本技能仅定义产品级行为,不处理认证逻辑。 - ClawHub: what-is-agentpmt
- 页面: https://clawhub.ai/agentpmt/what-is-agentpmt
- 安装命令: npx skills add AgentPMT/agent-skills --skill what-is-agentpmt
- ClawHub: agentpmt-account-mcp-rest-api-setup
- 页面: https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup
- 安装命令: npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup
https://api.agentpmt.com/mcp/https://api.agentpmt.com/products/purchase已收录 4 个 Skill