Add Script to Framework
add_script_to_frameworkAdd an existing automation script to the project's test framework. Fetches the script by ID, ensures the framework exists (creating it if needed), and writes the test file into the framework directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization." | |
| framework | No | Framework type. Known values: playwright (default), pytest, rust_cargo, go_test. Unknown values fall back to playwright via FrameworkManager.resolve_framework_type, so existing MCP clients passing arbitrary strings (the historical contract) are not rejected — this field is intentionally not strictly enum-enforced. | playwright |
| script_id | Yes | Automation script ID to add to the framework |