--- name: submit description: Submit the /solve endpoint to the NM i AI challenge platform. Use when the user wants to submit, send the endpoint, or says "submit", "submit endpoint", "send submission", "submit to ainm", "run submission". --- # Submit Endpoint Submit the deployed Cloud Run /solve endpoint to the NM i AI challenge platform via Playwright. ## Prerequisites - Playwright MCP available - Agent deployed to Cloud Run ## Steps ### 1. Get the Cloud Run URL Fetch the current service URL dynamically: ```bash gcloud run services describe tripletex-agent --region europe-north1 --project ai-nm26osl-1731 --format 'value(status.url)' ``` Use the returned URL as the endpoint base. The submission URL is `${URL}/solve`. ### 2. Navigate to the submission page Open `https://app.ainm.no/submit/tripletex` using Playwright. ### 3. Fill in the form - Type the Cloud Run URL + `/solve` into the **Endpoint URL** textbox - Leave the **API Key** field as-is (not required for Cloud Run) ### 4. Click Submit Click the **Submit** button. It becomes enabled after the endpoint URL is filled. ### 5. Wait for result Wait for the submission to finish evaluating. The "Evaluating" section disappears and a new result appears at the top of "Recent Results". Wait up to 5 minutes (the platform timeout is 300s). Use `browser_wait_for` with increasing intervals (10s, 20s, 30s) and check snapshots between waits.