Add sound
add_soundAdd WAV/MP3 sound files to a chosen sprite or the stage in Scratch projects, specifying the target and sound name.
Instructions
Add a sound to a sprite (or the stage) from an audio file on disk.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>",
"name": "<name>",
"path": "<path>"
},
"name": "add_sound"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | Path to the audio file (WAV/MP3). | |
| target | Yes | Sprite name, or "Stage". | |
| dataFormat | No |