get_protocol_template
Define a consistent communication protocol template to prevent AI from using different protocols for different game features, reducing bugs in multiplayer and interaction systems.
Instructions
⚠️ CRITICAL - Communication protocol template to ensure consistency.
PURPOSE: Prevent AI from using different protocols for different features.
COMMON MISTAKE (AI often does this):
Feature 1: { type: 'click', x, y }
Feature 2: { action: 'move', pos: {x, y} } ❌ Inconsistent!
SOLUTION: Define protocol ONCE at project start, reuse for ALL features:
All messages: { type: string, ...data }
Consistent structure across all game features
Use when: Starting multiplayer implementation, adding new interaction types.
This is a MAJOR source of bugs - keep protocol consistent!
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||