Generate k6 Script
k6_generateGenerate a k6 performance test script from a target URL and optional endpoint list. Auto-creates load profiles with thresholds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vus | No | Virtual users | |
| name | No | Script name | |
| 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." | |
| duration | No | Test duration | 1m |
| endpoints | No | API endpoints to test [{method, path, body?}] | |
| test_type | No | Type of test to generate | load |
| project_id | Yes | Project ID | |
| target_url | Yes | URL to generate test for |