analyze_scenario
Convert natural-language test scenarios into structured automation sessions. Detect context, configure libraries, and get a session ID for executing steps.
Instructions
Analyze a natural-language scenario into structured intent and create a session.
WORKFLOW: This is the single front door — your FIRST tool call for any test scenario. It CREATES the session, so do NOT also call manage_session(action="init") for the same scenario (that causes redundant session churn). Reuse the returned session_id in every later call.
What this tool does:
Creates a new session with unique session_id (or reuses provided one)
Analyzes scenario to detect context (web/api/mobile/desktop)
Auto-configures libraries based on scenario text
Returns session_id for use in ALL subsequent tool calls
CRITICAL: Save the session_id from the response and use it in all other tool calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Application context (e.g., "web", "mobile", "api", "desktop"); defaults to "web". An explicit context="desktop" DETERMINISTICALLY forces a native desktop (PlatynUI) session regardless of scenario wording — phrasing or word order cannot flip it to mobile/Appium. Use it for Linux/GNOME desktop GUI scenarios. | web |
| scenario | Yes | Human-language description of the task to automate. | |
| session_id | No | Optional existing session id to reuse; if omitted, a new one is created. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||