Generate k6 Script
k6_generateGenerate a k6 performance test script from a target URL and optional endpoint list. Auto-creates load profiles with thresholds.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"target_url": "<target_url>"
},
"name": "k6_generate"
}
}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 |