Create k6 Script
k6_create_scriptCreate a k6 performance test script. Supports load, stress, spike, soak, smoke, breakpoint, API, security, and browser test types.
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>",
"name": "<name>",
"target_url": "<target_url>"
},
"name": "k6_create_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | k6 script code (optional - will be generated if not provided) | |
| name | Yes | 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." | |
| test_type | No | Type of k6 test | load |
| project_id | Yes | Project ID to create script in | |
| target_url | Yes | Target URL to test | |
| description | No | Script description | |
| test_case_id | No | Optional test case ID to link to |