Skip to main content
Glama

wait_for_text

Waits for specific text patterns to appear in terminal output, enabling automation of prompts, loading states, and output monitoring.

Instructions

Wait until a regex pattern appears in the terminal buffer. Useful for waiting for prompts, loading states, or specific output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesSession ID
patternYesRegex pattern to search for in the terminal text
timeoutNoTimeout in milliseconds (default: 5000)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nvms/tui-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server