AgentSkillsCN

tail

对后台进程的日志进行尾部查看与流式读取。查看最近的输出、读取新行,并监控正在运行的应用程序。在尾部查看日志、检查进程输出、流式传输应用日志,或监控后台任务时使用此功能。

SKILL.md
--- frontmatter
name: tail
description: "Tail and stream logs from background processes. View recent output, read new lines, and monitor running applications. Use when tailing logs, checking process output, streaming application logs, or monitoring background tasks."

Tail - Log Streaming

Stream and tail logs from background processes using the tail: MCP tools.

Quick Reference

ToolPurpose
tail:start_processLaunch a command in the background
tail:tail_logsShow last N log lines
tail:read_logsRead new output since last read
tail:kill_processStop a running process
tail:restart_processRestart a process
tail:list_processesShow all managed processes
tail:remove_processRemove a process from the list

Common Workflows

Start and monitor a dev server

  1. tail:start_process with command: "npm run dev" and id: "dev-server"
  2. tail:read_logs with id: "dev-server" to check startup output
  3. Periodically tail:tail_logs with id: "dev-server" to see recent logs

Watch a build

  1. tail:start_process with command: "npm run build -- --watch"
  2. tail:read_logs to stream incremental output

Debug a failing process

  1. tail:tail_logs to see the last N lines of output
  2. Check for errors in stderr lines
  3. tail:restart_process after applying a fix