/firestorm-avatar:firestorm-headlessfrom Firestorm Avatar (MCP)
Use when you need your own Second Life avatar to test something in-world without the user's viewer — LSL/Luau script behaviour, object and inventory behaviour, permissions, RLV — by launching the ID-fork Firestorm viewer with --headless and driving it over its MCP server. Covers launching on a chosen port and grid, logging in from a saved login, waiting for readiness, the script-test loop, cleanup, exit codes, and the rules that keep test output contained.
Ships in Firestorm Avatar (MCP). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
--headless starts the user's ID-fork Firestorm with no window and no GPU rendering (Mesa
software GL). It logs an avatar in and serves the same MCP tools as the normal viewer, on a port
you choose. You launch it, use it and shut it down yourself. It runs beside the user's own
viewer without touching its settings, cache or MCP port. Linux only.
cd ~/Work/phoenix-firestorm/build-linux-x86_64/newview/packaged
nohup ./firestorm --headless --mcp-port 33830 --grid util.aditi.lindenlab.com \
--login-name "<saved login>" > /tmp/headless-33830.out 2>&1 &
--mcp-port is required. Use anything free except 33777, the user's own viewer.util.aditi.lindenlab.com) unless the user says otherwise. Ask the
user which avatar to use if you don't know.--login-name picks a login the user saved in their normal viewer. A bare name gets
@<grid> appended. Never put a password on the command line. On a machine without saved
logins, set IDHEADLESS_USERNAME and IDHEADLESS_PASSWORD in the environment instead."secondlife://Region%20Name/128/128/30" to log in somewhere else.Other flags: --run-name NAME names the inventory run folder (default: UTC timestamp),
--idle-quit SECONDS (default 900, 0 disables), --status-file PATH.
Poll ~/.firestorm_x64_headless/<port>/headless-status.json. Its state goes starting →
logging_in → cleaning_up → ready, which takes about 40 s. Connect only on ready. On
failed the process has exited and error says why. The file also carries region,
run_folder_id, rlv_run_folder_id and a cleanup report.
| Exit | Meaning |
|---|---|
| 0 | Clean quit |
| 10 | Startup failure, or not ready within 300 s |
| 11 | MCP port already in use |
| 12 | Login failed (unknown saved login, bad password, TOS, MFA, grid down) |
| 13 | This avatar is already running headless |
| 14 | Disconnected from the grid after login |
The firestorm MCP server in this plugin points at port 33777, so reach the headless viewer over HTTP directly:
curl -s -N -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ping","arguments":{}}}' \
http://127.0.0.1:33830/mcp
Slow tools stream their answer as a data: {...} SSE line. {"method":"tools/list"} lists every
tool with its schema. The tools behave as in MCP_TOOLS.md and the firestorm-avatar skill,
including RLV enforcement. Two tools exist only in headless: viewer.quit and
headless.getSession (run name, run folder ids, and the ledger of objects this session rezzed).
inventory.createItem {"name":"t1","type":"script"}. With no parent, it lands in the run
folder.script.write {"item_id":…, "target":"mono"|"lsl2"|"luau"|"lsl-luau", "text":"…"}. The reply
says whether it compiled, with the errors if not.object.create {"shape":"box"} to get a prim to hold it.last_seq from chat.history {"limit":1}.object.addContents {"object_id":…, "item_ids":[…]}. The script starts running.chat.history {"since_seq":…} returns what the script said with llOwnerSay, and its
run-time errors and DEBUG_CHANNEL lines (type:"debug").To hear a script on a non-zero channel, open chat.listen before it talks and read
chat.replies. object.resetScripts restarts a script without a new item, and
object.setScriptsRunning stops and starts it. Encode values so nothing
is lost, for example wrap each one in […] so leading and trailing spaces show. Use a new script
item for each test.
object.create, object.rez, object.duplicate,
object.drop) goes on a ledger. viewer.quit deletes them all, purges the copies that deleting
puts in Trash (cleanup.purged), then logs out and exits 0. SIGTERM and the idle timeout do the same. After a crash, the next
launch of that avatar deletes the leftovers before ready.llRezObject, llRezAtRoot) are not on the ledger and stay in-world:
have the script rez them temporary or llDie them."keep":true on object.create or object.rez leaves that object in-world.
"temporary":true makes the region delete it about a minute after rezzing.cleanup.mixed, and so are objects in another region under cleanup.unresolved. Clean those up
yourself.Headless Tests/<run>/ and stays after the run.
inventory.delete moves an item to Trash; add "purge":true to delete it for good. Destinations
outside that folder (or #RLV/Headless Tests/<run>/ for RLV shared-folder tests) are refused.viewer.quit and check the status file's cleanup report.vision.snapshot) work but are rendered on the CPU: untextured and slow.~/.firestorm_x64_headless/<port>/logs/Firestorm.log. If headless itself
misbehaves, stop and report it to the user with the status file and the log. Don't modify or
build the viewer.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/firestorm-avatarUse when driving the user's Second Life avatar through the Firestorm viewer — moving (teleport/sit/stand), seeing (viewport snapshot), searching the world, browsing/organizing/wearing inventory, giving items, setting next-owner permissions on items, authoring gestures and wearables (clothing, tattoos, body shapes), editing your own profile and viewing others', inspecting nearby avatars, 1:1 IM and group chat/notices, answering offers/dialogs, touching in-world objects, uploading assets (images, sounds, animations, materials, mesh), building with objects (create prims, rez, attach, drop, duplicate, edit, texture, fill and edit contents, reset scripts, set script experiences, set permissions, link, take), and paying L$. All actions respect RLV restrictions. Tools are served by the embedded "firestorm" MCP server./firestorm-chatUse when talking to in-world scripted objects, HUDs, vendors, or any LSL protocol from the user's Second Life avatar — sending chat on a channel and capturing the object's reply. Routes through the Firestorm LSL bridge (the `chat.*` tools of the firestorm MCP server) so it works on ANY channel, including negative/protocol channels the viewer can't use directly. For RLV relays specifically, use the firestorm-rlv-relay skill (which builds on this).npx claudepluginhub i-doll/plugins --plugin firestorm-avatar