Implementation
gradeNot graded
gradeNot graded
get_game_rulesAnswer
Get the exact physics, hitboxes and obstacle sizes of the dino game, how the agent controls work, a playing strategy and when to stop. Call this once before playing and follow it.
View tool JSON
{
"name": "get_game_rules",
"kind": "answer",
"impl": "imperative",
"description": "Get the exact physics, hitboxes and obstacle sizes of the dino game, how the agent controls work, a playing strategy and when to stop. Call this once before playing and follow it.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/webmcp-apps/dino/"
}start_gameAction
Start a new game in agent mode. Runs until the first obstacle comes into range, then freezes and returns the game state for your decision.
View tool JSON
{
"name": "start_game",
"kind": "act",
"impl": "imperative",
"description": "Start a new game in agent mode. Runs until the first obstacle comes into range, then freezes and returns the game state for your decision.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/webmcp-apps/dino/"
}actAction
Plan how to handle the obstacle the game is frozen on, then resume. The action fires when the gap to the obstacle shrinks to trigger_gap_px. Returns the next frozen state, or the game over result.
View tool JSON
{
"name": "act",
"kind": "act",
"impl": "imperative",
"description": "Plan how to handle the obstacle the game is frozen on, then resume. The action fires when the gap to the obstacle shrinks to trigger_gap_px. Returns the next frozen state, or the game over result.",
"inputSchema": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"jump",
"duck",
"none"
]
},
"trigger_gap_px": {
"type": "number",
"description": "Gap (px) between dino front and obstacle at which to act. Ignored for \"none\"."
},
"reason": {
"type": "string",
"description": "Very short reason, shown in a speech bubble (max ~6 words)"
}
},
"required": [
"action"
]
},
"page": "/webmcp-apps/dino/"
}get_stateAnswer
Get the current game state without changing anything.
View tool JSON
{
"name": "get_state",
"kind": "answer",
"impl": "imperative",
"description": "Get the current game state without changing anything.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/webmcp-apps/dino/"
}get_historyAnswer
Scores and causes of death for past games (human and agent).
View tool JSON
{
"name": "get_history",
"kind": "answer",
"impl": "imperative",
"description": "Scores and causes of death for past games (human and agent).",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/webmcp-apps/dino/"
}