360 Secure SkillHub
360 安全技能中心

Read Tool

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

dinghaibin
dinghaibin
热度 30.01
最近更新 2026-05-11 17:47:01
分类:开发依赖:代码执行应用场景:自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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