playtest
Starts a Roblox Studio test session, runs optional server/client Luau assertions, collects both outputs, and stops to verify runtime behavior after changes.
Instructions
One-shot verification: starts a playtest, optionally waits for player/character spawn, runs optional server and/or client Luau assertions, waits, collects errors/warnings/prints from BOTH Server and Client Output, then stops. Use after changes to verify runtime behaviour.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "playtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Optional Luau to run in `context` (default server) once the game is running. | |
| studio | No | Optional. Target Studio (name substring, place id or id). Only needed when several Studios are open and none was selected. | |
| context | No | Where to run `code`. Default server. | |
| duration_s | No | How long to let the game run in total. Default 5, max 120. | |
| stop_after | No | Stop the playtest at the end. Default true. | |
| client_code | No | Optional Luau to run on the Client datamodel. | |
| server_code | No | Optional Luau to run on the Server datamodel. | |
| wait_for_player | No | Wait up to 15s for the local Player and Character to spawn before running code. Default false. |