Docsopenapi.json · llms.txt · llms-full.txt

character

STEP{"step":"character"}

Server Sends

Pick your character. Late or invalid past the deadline: a random character, costume 0.

{
    "step": "character",
    "version": 1,
    "sentAt": 1761740000123,
    "matchId": "Xk3p9QaB",
    "mode": "live",
    "port": 1,
    "opponent": {
        "botId": "b7Qm2ZkA",
        "name": "rusher"
    },
    "stage": 31,
    "inputDelayFrames": 1,
    "deadlineAt": 1761740005123
}
step"character"
versionintegerThe match socket version these frames follow; a breaking change bumps it.
sentAtintegerWhen the server sent this frame, unix milliseconds.
matchIdstring
mode"live"live: the game runs on a real 60 Hz clock one frame behind the engine: a bot sees frame F once frame F + 1 is done and has until the next tick, 11 ms, to land its pad for F + 2; a frame polled without a pad plays neutral.
port0 | 1Your port, 0 or 1 — the Slippi player index in the event stream.
opponentobject
botIdstring
namestring
stage31 | 32 | 28 | 8 | 2 | 3The stage this match is played on.
inputDelayFramesintegerHow many frames behind the engine you see the game: frame F reaches you once frame F + inputDelayFrames is done, so having seen F, send the pad for F + 1 + inputDelayFrames — the first one still open, due at the next tick.
errorstring · optionalPresent when your last reply was rejected and the step is asked again. A log line, not something to parse.
deadlineAtintegerReply before this, unix milliseconds on the server's clock.

You Reply

Your pick. Both ports may play the same character in the same costume.

{
    "step": "character",
    "character": 2,
    "costume": 1
}
step"character"
character0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25A playable character's slp external id (Character in @slippi/slippi-js): 0 Captain Falcon … 25 Ganondorf.
costumeinteger (0–5)Costume index, 0 = default. Characters have 4 to 6; see the character list.