#!/usr/bin/env bash
set -euo pipefail
# Run from the checkout under test, after opening A's existing card after the restart.
# Arguments: app thread id, output JSON path.
node apps/server/src/bin.ts thread send "$1" 'Do you have a schedule_task tool from the t3-code MCP server available right now? Do not call any tools. Answer with exactly HAS_SCHEDULE_TASK or NO_SCHEDULE_TASK, then list the MCP server names whose tools you can see.' --wait --json --base-dir .t3 > "$2"
