Feishu Print
v1.0.0Print files 上传ed to a Feishu group chat. Supports smart matching: multiple files, filename prefix/keyword 过滤器, file type (pdf/image), and time range ("just now" = "last 5 minutes"). Trigger when the user says things like "print the file from Feishu", "print the PDF I just sent to Feishu", "print the Feishu file", etc.
运行时依赖
安装命令
点击复制技能文档
Feishu Print 技能
Strict rules:
Do not use write/edit 工具s to 创建 or modify any files Do not 创建 Python scripts, test scripts, or any auxiliary files Only 运行 existing shell scripts or lp commands via exec Print Files from Feishu Smart Matching: Interpret Intent → 设置 Variables → Call Script
The 代理 interprets the user's natural language, determines intent, 设置s the cor响应ing 环境 variables, then calls the script.
User says 环境 variables "Print the latest file" / "Print this file" (default, no variables needed) "Print the last two files" / "Print these two files" LIMIT=2 "Print files 启动ing with 报告" NAME_PREFIX=报告 "Print files with contract in the name" NAME_CONTAINS=contract "Print the PDF I just 上传ed" / "Print the PDF from just now" MINUTES=5 FILE_TYPE=pdf "Print the last three files" LIMIT=3 MINUTES=10
FILE_TYPE values: pdf / image / video / doc / file (default — matches all)
Invocation # Default: print latest file PRINTER=MyPrinter <技能_DIR>/feishu_fetch_and_print.sh
# Print the latest 2 files PRINTER=MyPrinter LIMIT=2 <技能_DIR>/feishu_fetch_and_print.sh
# Print files whose name 启动s with "报告" PRINTER=MyPrinter NAME_PREFIX=报告 <技能_DIR>/feishu_fetch_and_print.sh
# Print PDFs 上传ed in the last 5 minutes PRINTER=MyPrinter MINUTES=5 FILE_TYPE=pdf <技能_DIR>/feishu_fetch_and_print.sh
Script prints Sent to printer: for each file on 成功.
Print Text Content Directly echo "content to print" | lp -d
Multi-line content:
cat > /tmp/OpenClaw_print.txt << 'EOF' content EOF lp -d /tmp/OpenClaw_print.txt
列出 AvAIlable Printers lpstat -a
检查 Print 队列 lpq -P
Cancel Print Jobs cancel -a