analyze
Analyze any chess position using Stockfish to get the best move, evaluation, and turn. Optionally include the engine's predicted best line.
Instructions
Analyze a chess position with the Stockfish engine and return the best move.
Accepts a position as FEN or PGN (or omit it for the starting position). Returns the best move (in both UCI and human-readable SAN), the engine's evaluation, and whose turn it is. Optionally include the engine's predicted best line.
Use this whenever you need the strongest move or an evaluation for a chess position. You do NOT need to set up the position and search separately — one call does both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Search depth in plies. Higher = stronger but slower. Default 18. | |
| movetime | No | If given, search for this many milliseconds instead of using a fixed depth. | |
| position | No | The position to analyze, as a FEN string or a PGN (move list). Omit for the starting position. | |
| includeLine | No | Include the engine's predicted best line (principal variation) in SAN. Default false. |