Trace emitted sounds
sound_traceRecords sounds the game emits in a chosen realm for a set duration or call limit, then removes the recorder without altering game behavior and returns captured sound events.
Instructions
Records the sounds the game emits through the EntityEmitSound hook during duration_s (or until max_calls), then removes its recorder: game behaviour is unchanged. Waits the whole duration (progress reported; can run as an MCP task). Result: {event, calls: [{t (s since start), sound: {name, original_name, level, pitch, volume, dsp, channel, flags, sound_time, pos, entity}}], recorded, total_calls, capped, duration_s, tracer_removed}. Checked live: realm server sees Entity:EmitSound and sound.Play run on the server; realm client sees the client's Entity:EmitSound and the server's sound.Play; surface.PlaySound (UI sounds) is seen by neither. Also not seen: sounds that a hook running before the recorder suppressed (returned a value). Example: {"duration_s": 3, "realm": "server"}. Needs a loaded map (map_load): the server and client realms do not exist at the main menu.
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": "sound_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | No | Realm (default server). | |
| instance | No | Optional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance. | |
| max_calls | No | Stop after this many sounds (default 100). | |
| duration_s | No | Recording length in seconds (default 5). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| note | No | ||
| calls | Yes | ||
| event | Yes | ||
| capped | No | ||
| warning | No | ||
| recorded | Yes | ||
| next_call | No | ||
| duration_s | No | ||
| answered_by | No | ||
| total_calls | Yes | ||
| tracer_removed | No | ||
| truncated_note | No | ||
| version_warning | No |