Overview
How to send messages in Twitch chat using browser automation.
Navigate to Channel
- Go to the Twitch channel page:
https://www.twitch.tv/\{channel_name\} - Ensure you are logged in to send messages
Send Chat Message
- Find the chat input textbox with label "Send a message"
- Click or focus the textbox
- Type your message using
browser_typewith the textbox element - Press Enter key to send the message
Example Workflow
1. browser_navigate → https://www.twitch.tv/{channel_name}
2. browser_snapshot → find textbox "Send a message" ref
3. browser_type → element: textbox, text: "Your message here"
4. browser_press_key → key: "Enter"
Notes
- The chat input is a textbox with the accessible name "Send a message"
- Use
browser_press_keywith Enter to submit, not the submit parameter - Messages appear in chat immediately after pressing Enter
- You must be logged in to send messages
- Some channels may have follower-only or subscriber-only chat modes