bitmask_ops
Perform bitmask operations to inspect masks, enumerate submasks/supersets and set bits, and calculate next permutations.
Instructions
Bitmask operations: info, submasks, supersets, next permutation, enumerate set bits.
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": {
"mask": "<mask>",
"operation": "<operation>"
},
"name": "bitmask_ops"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | Yes | Non-negative integer bitmask | |
| universe | No | Universe mask for supersets operation | |
| operation | Yes | Operation: info, submasks, supersets, next_permutation, or enumerate |