Integration guide for connecting projects to TabzChrome terminals. This skill should be used when users want to: spawn terminals from scripts, add 'Run in Terminal' buttons to web pages, integrate MCP browser automation tools, use TTS/audio notifications from code, or connect any project to TabzChrome's API.
/plugin marketplace add GGPrompts/TabzChrome/plugin install tabz-integration@tabz-chromeThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/api-reference.mdreferences/audio-integration.mdreferences/integration-examples.mdreferences/mcp-setup.mdConnect any project to TabzChrome terminals via REST API, WebSocket, HTML attributes, or MCP tools.
Trigger when users ask about:
TOKEN=$(cat /tmp/tabz-auth-token)
curl -X POST http://localhost:8129/api/spawn \
-H "Content-Type: application/json" \
-H "X-Auth-Token: $TOKEN" \
-d '{"name": "Worker", "workingDir": "~/projects", "command": "claude"}'
<button data-terminal-command="npm run dev">Start Dev Server</button>
echo '{"type":"QUEUE_COMMAND","command":"npm test"}' | \
websocat "ws://localhost:8129?token=$(cat /tmp/tabz-auth-token)"
| Method | Auth Required | Use Case |
|---|---|---|
HTML data-terminal-command | None | Static buttons on web pages |
| WebSocket + websocat | Token file | CLI scripts, shell functions |
| WebSocket + JS | API endpoint | Web applications |
| POST /api/spawn | Token header | Create new terminal tabs |
| MCP tools | Backend running | Browser automation from Claude |
| Audio API | None | TTS notifications from code |
For detailed examples, see references/integration-examples.md.
| Endpoint | Method | Purpose |
|---|---|---|
/api/spawn | POST | Create terminal with optional command |
/api/health | GET | Health check (no auth) |
/api/agents | GET | List active terminals |
/api/agents/:id | DELETE | Kill a terminal |
/api/audio/speak | POST | TTS playback |
/api/audio/generate | POST | Generate TTS audio URL |
Authentication: Most endpoints require X-Auth-Token header with value from /tmp/tabz-auth-token.
See references/api-reference.md for full endpoint documentation.
Add TabzChrome MCP server to your project's .mcp.json:
{
"mcpServers": {
"tabz": {
"command": "/path/to/TabzChrome/tabz-mcp-server/run-auto.sh",
"args": [],
"env": { "BACKEND_URL": "http://localhost:8129" }
}
}
}
This gives you access to 71 browser automation tools. See references/mcp-setup.md for tool categories.
Speak text from any script or application:
curl -X POST http://localhost:8129/api/audio/speak \
-H "Content-Type: application/json" \
-d '{"text": "Build complete", "voice": "en-US-AndrewNeural"}'
See references/audio-integration.md for voice options and advanced usage.
Add to .bashrc or .zshrc:
tabz() {
local cmd="$*"
local token=$(cat /tmp/tabz-auth-token 2>/dev/null)
if [[ -z "$token" ]]; then
echo "Error: TabzChrome backend not running" >&2
return 1
fi
echo "{\"type\":\"QUEUE_COMMAND\",\"command\":$(echo "$cmd" | jq -Rs .)}" | \
websocat "ws://localhost:8129?token=$token"
}
# Usage: tabz npm run dev
# Usage: tabz "Explain this error and fix it"
./scripts/dev.sh from TabzChrome directory)websocat installed (cargo install websocat or package manager)"Backend not running"
curl http://localhost:8129/api/health # Should return JSON
"Auth token not found"
cat /tmp/tabz-auth-token # Should exist when backend running
"Connection refused"
./scripts/dev.shlsof -i :8129