add_user_defined_variables
Add user-defined variables to a JMeter test plan, scoped globally or to a thread group, with values set once before the test starts.
Instructions
Add a User Defined Variables config element under the given parent (TestPlan root for global variables, or a Thread Group to scope them there). Values are set once, before the test starts.
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": {
"planId": "<planId>",
"parentId": "<parentId>",
"variables": "<variables>"
},
"name": "add_user_defined_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | User Defined Variables | |
| planId | Yes | ||
| parentId | Yes | ||
| variables | Yes |