Skip to main content
Glama

Keystroke Overlay

keystroke_overlay
Destructive

Burns keycast-style badges for shortcuts, clicks, and typing onto recordings from an input event log, so viewers can follow on-screen actions without exposing typed text.

Instructions

Burn keycast-style badges for shortcuts, clicks, and typing from the recording's input event log (start_recording events: true). Never shows typed text: the log has none.

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": {
      "input": "<input>"
    },
    "name": "keystroke_overlay"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysNoshortcuts (default): the chord (Ctrl + S); masked: modifiers only (Ctrl + …).
sizeNoFont px (default 4.5% of the frame height).
colorNoText color (default white).
inputYesPath to the recording.
clicksNoShow clicks (default true).
dryRunNoReturn the planned badges; write nothing.
eventsNoEvent log (default: the input's .events.jsonl).
outputNoOutput path; default SCREENCAST_HOME/edits.
typingNoShow typing as "Typing…" (default true).
fontFileNoFont: .ttf/.otf/.ttc path or C:\Windows\Fonts name. Default: bundled Inter, plus a system font for CJK, emoji, Arabic.
positionNoDefault bottom (centred).
lingerSecNoSeconds a badge stays up (default 1.2).
overwriteNoReplace an existing output.

Output Schema

NameRequiredDescriptionDefault
badgesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.54.0
    • changedInput schema / properties / fontFile / description
      Previous value: -"Font: a .ttf/.otf/.ttc path or a C:\\Windows\\Fonts file name. Default: bundled Inter, with a covering system font for scripts it lacks (CJK, emoji, Arabic, ...)."New value: +"Font: .ttf/.otf/.ttc path or C:\\Windows\\Fonts name. Default: bundled Inter, plus a system font for CJK, emoji, Arabic."
    • changedInput schema / properties / output / description
      Previous value: -"Optional output path. Defaults under SCREENCAST_HOME/edits."New value: +"Output path; default SCREENCAST_HOME/edits."
    • changedInput schema / properties / overwrite / description
      Previous value: -"Allow replacing an existing file at the output path (default false)."New value: +"Replace an existing output."
  2. Addedv0.47.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the write profile is covered. The description adds genuinely non-obvious context — the privacy guarantee that typed text is never rendered and the dependency on an events log — but says nothing about overwriting existing output, re-encoding cost, or what happens when the log is missing.

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?

Two short sentences, zero filler, with the core action front-loaded and the privacy caveat placed immediately after. Every clause carries information an agent could not get from the schema alone.

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

Completeness4/5

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

An output schema exists, so return values need no explanation, and all 13 parameters are documented in-schema. The prerequisite and privacy behavior are covered; only failure modes (missing event log, existing output) are left unaddressed for a destructive render tool.

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

Parameters3/5

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

Schema description coverage is 100% and every one of the 13 parameters carries its own description, including defaults and enums, so the schema does the heavy lifting. The description only implicitly touches keys/typing/clicks and adds no format or interaction detail beyond the schema.

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

Purpose4/5

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

States a specific verb ("Burn") and a specific artifact ("keycast-style badges for shortcuts, clicks, and typing") plus the data source (the recording's input event log). That is enough to separate it from burn_subtitles or overlay, though it never names a sibling to contrast with explicitly.

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

Usage Guidelines4/5

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

Gives a concrete prerequisite: the recording must have been made with start_recording events: true, otherwise there is no log to read. It does not state when to prefer this over overlay/burn_subtitles or what to do when the event log is absent, so it stops short of full routing guidance.

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