run_script_in_play_mode

Start a playtest, run a script, then automatically stop. Returns all output. Useful for testing code changes without manual intervention. Args: - code (string): Luau code to execute during play - timeout (number, optional): Max seconds before auto-stop (default: 30) Returns: { output: string, err...

Server Melo yannyhl/linkedsword-mcp
Category Execute
Risk class High
Parameters 00 required

What run_script_in_play_mode does on Melo

AI agents invoke run_script_in_play_mode to trigger actions in Melo. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.

Why run_script_in_play_mode needs a policy

This tool executes arbitrary Luau code within a Roblox Studio playtest environment. While not destructive by itself, code execution with access to game state and potentially game-altering APIs poses a high blast radius if an AI agent is compromised or misaligned. The playtest environment could modify game objects, trigger gameplay events, or cause unintended side effects.

From the tool's definition Tool description states 'run a script' and 'Luau code to execute during play'. The args accept arbitrary `code` string to be executed. This is explicit code execution with external effects (starting a playtest, running user-provided code, stopping playtest).

Questions about run_script_in_play_mode

What does the run_script_in_play_mode tool do? +

Start a playtest, run a script, then automatically stop. Returns all output. Useful for testing code changes without manual intervention. Args: - code (string): Luau code to execute during play - timeout (number, optional): Max seconds before auto-stop (default: 30) Returns: { output: string, errors: string[], duration: number }. It is categorised as a Execute tool in the Melo MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.

How do I enforce a policy on run_script_in_play_mode? +

Register the Melo MCP server in PolicyLayer and add a rule for run_script_in_play_mode: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Melo. Nothing to install.

What risk level is run_script_in_play_mode? +

run_script_in_play_mode is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.

Can I rate-limit run_script_in_play_mode? +

Yes. Add a rate_limit block to the run_script_in_play_mode rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block run_script_in_play_mode completely? +

Set action: deny in the PolicyLayer policy for run_script_in_play_mode. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides run_script_in_play_mode? +

run_script_in_play_mode is provided by the Melo MCP server (yannyhl/linkedsword-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.