Skip to main content
Glama
Giancarlo26

obs-action-history

by Giancarlo26

obs_replay_buffer

Control OBS replay buffer: check status, start/stop it, and save the last seconds of footage to a file, enabling retroactive capture of missed moments.

Instructions

The replay buffer: OBS holding the last N seconds of the show in memory so you can decide AFTER something happens that you wanted to keep it. This is the only capture primitive that works backwards in time, which makes it the one an automated producer actually needs - by the time a moment is recognisable as good, recording it is already too late. action 'save' is the interesting one: it writes the buffer to a file and returns the path. TRAPS: (1) The save is asynchronous. SaveReplayBuffer returns before the file is written, so asking for the filename immediately gives you the PREVIOUS clip. This tool polls until the path changes and reports pathChanged: false if it never did - do not hand a path onward without checking that flag. (2) The buffer only holds its configured window, 20 seconds on the reference machine, so 'save that thing from a minute ago' is not a thing that can succeed. (3) Every action except status fails with code 501 unless the buffer is already running, and it does not start itself - check status first. (4) The buffer is a separate encode from the stream; starting it costs CPU that a live broadcast is already using. (5) These requests drive OBS's MAIN replay buffer only. The reference machine also had a second replay_buffer output called 'Vertical Backtrack' which they do not touch at all - status lists it so you can see it is there.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes'status' is read-only and always safe.
waitMsNosave only: how long to wait for the file path to change. Default 4000, max 15000.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full transparency burden and does so admirably: it discloses asynchronous saves, the `pathChanged` flag, the previous-clip pitfall, 501 failures unless running, CPU cost, and the separate 'Vertical Backtrack' buffer.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but appropriately organized: purpose is front-loaded, the key action is highlighted, and the numbered TRAPS make the complex failure modes scannable. Every sentence adds actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that there is no output schema and the tool has asynchronous behavior plus multiple failure modes, this description is unusually complete. It explains what save returns, how to verify it, when actions will fail, and resource implications.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already describes both parameters well, so the baseline is 3; the description adds meaning beyond that by explaining the behavior of the `save` action and why the returned path must not be trusted without checking `pathChanged`. It does not explicitly discuss `waitMs` in the prose, but the schema covers it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly defines the replay buffer as a backwards-in-time capture primitive and identifies `save` as the operation that writes the buffer to a file. It distinguishes itself from sibling capture tools by explaining that this is the only primitive that works backwards in time.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly states when to use the tool: after the fact, when a moment is only recognizable after it happens. It also gives when-not guidance, such as the 20-second buffer window, and warns to check status before other actions because the buffer does not start itself.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Giancarlo26/obs-action-history'

If you have feedback or need assistance with the MCP directory API, please join our Discord server