Satisfies Range
satisfies_rangeTest whether a version satisfies a range: exact, ^ (caret), ~ (tilde), comparators (>=,>,<=,<,=), x-ranges (1.2.x), AND (space-separated), OR (||). E.g. version "1.4.2", range "^1.2.0".
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"range": "^1.2.0",
"version": "1.4.2"
},
"name": "satisfies_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | The range, e.g. "^1.2.0" or ">=1.2.0 <2.0.0". | |
| version | Yes | The version to test. |