classify
Categorize a backgammon board position into GNUBG's position types (over, bearoff, race, crashed, contact) by providing board input and optionally the player on roll.
Instructions
Classify a board position into one of GNUBG's position types.
Args: board_input: Board in any supported format. player: Who is on roll ("x" or "o"). Required if board_input is a boardState dict.
Returns: Dict with classification name and numeric code. Classifications: "over", "bearoff", "race", "crashed", "contact".
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": {
"board_input": "<board_input>"
},
"name": "classify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| player | No | ||
| board_input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||