add_postman_collection_variable
Adds a variable to a Postman collection file. Specify the file path and variable details (key, value, type) to update the collection.
Instructions
Add a variable to the Postman collection
Args:
file_path: The path to the Postman collection file (string)
variable: The variable dictionary with keys like key, value, type, etc. (dict)
Example: {
"key": "base_url",
"value": "https://api.example.com",
"type": "string"
}
Returns:
The updated Postman collection data (dict)
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": {
"file_path": "<file_path>",
"variable": "<variable>"
},
"name": "add_postman_collection_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| variable | Yes |