Binary-reflected Gray code
bpj_binary_gray_codeGenerate a reflected Gray code by XORing adjacent bits of a nonnegative integer.
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": {
"integer": "<integer>",
"bits": "<bits>"
},
"name": "bpj_binary_gray_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bits | Yes | ||
| integer | Yes |