demo · Playgrounds & Games · JSON · API for agents
Retrieves the current state of the chess board including piece positions, current turn, total moves, and game status.
{
"name": "get-board-state",
"kind": "read",
"impl": "imperative",
"description": "Retrieves the current state of the chess board including piece positions, current turn, total moves, and game status.",
"inputSchema": {
"type": "object",
"properties": {}
}
}Makes a chess move. Provide the move as "from:to" (e.g., "e2:e4").
{
"name": "make-move",
"kind": "action",
"impl": "imperative",
"description": "Makes a chess move. Provide the move as \"from:to\" (e.g., \"e2:e4\").",
"inputSchema": {
"type": "object",
"properties": {
"move": {
"type": "string",
"description": "Move in format \"from:to\" (e.g., \"e2:e4\")",
"default": "e2:e4"
}
},
"required": [
"move"
]
}
}Gets all legal moves for a piece at a position (x: 0-7, y: 0-7).
{
"name": "get-possible-moves",
"kind": "read",
"impl": "imperative",
"description": "Gets all legal moves for a piece at a position (x: 0-7, y: 0-7).",
"inputSchema": {
"type": "object",
"properties": {
"position": {
"type": "object",
"properties": {
"x": {
"type": "number",
"minimum": 0,
"maximum": 7,
"description": "X coordinate (0=a, 7=h)"
},
"y": {
"type": "number",
"minimum": 0,
"maximum": 7,
"description": "Y coordinate (0=rank 1, 7=rank 8)"
}
},
"required": [
"x",
"y"
]
}
},
"required": [
"position"
]
}
}Restarts the chess game to initial position.
{
"name": "restart-game",
"kind": "action",
"impl": "imperative",
"description": "Restarts the chess game to initial position.",
"inputSchema": {
"type": "object",
"properties": {}
}
}Promotes a pawn to queen, rook, bishop, or knight.
{
"name": "promote-pawn",
"kind": "action",
"impl": "imperative",
"description": "Promotes a pawn to queen, rook, bishop, or knight.",
"inputSchema": {
"type": "object",
"properties": {
"pieceType": {
"type": "string",
"enum": [
"queen",
"rook",
"bishop",
"knight"
],
"description": "Piece type to promote to."
}
},
"required": [
"pieceType"
]
}
}