360 Secure SkillHub
360 安全技能中心

Read Tool

该 Skill 提供命令行式输入捕获工具,从标准输入读取一行文本并保存到指定变量,适用于交互式 shell 提示和脚本输入处理。文档声明支持自定义提示语、读取超时和静默输入模式,并给出用法示例。

分类:开发
dinghaibin
dinghaibin
热度 19.87
最近更新 2026-05-11 17:47:01

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dinghaibin/read-tool
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
read-tool
description
Read a line from standard input into a variable. Use for interactive shell prompts and script input handling.

Read - Input Capture Utility

Read a line of text from standard input and store it for use in scripts. Supports prompts, timeouts, and silent input mode for passwords.

Usage

read-tool [options] [variable_name]

Options

  • -p PROMPT: Display prompt before reading
  • -t N: Timeout after N seconds
  • -s: Silent mode (don't echo input)

Examples

read-tool -p "Enter name: " NAME
read-tool -s -p "Password: " PASS
read-tool -t 5 TIMEOUT_VAR