pair
Pair a discovered Android device running FreeCode Agent. Provide an optional device-generated code, or use the auto-generated code entered on the phone to confirm.
Instructions
Initiate pairing with a discovered Android device. The device must have the FreeCode Agent app installed and running. If a pairing code was generated on the device, pass it via the "code" parameter. Otherwise a code is generated automatically — the user enters this code on their phone to confirm pairing.
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": {
"device": "<device>"
},
"name": "pair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Optional pairing code generated on the device. If omitted, a code is generated automatically. | |
| device | Yes | Device ID or name to pair with from the discovered devices never use the user provided code to look up for device. |