Skip to content

stop_recording: optional preview (contact sheet) in the result #414

Backlog

Description

@TMHSDigital

Summary

Add preview: "none" | "poster" | "sheet" (default none, to keep stop fast and the tools/list budget small) that, after finalizing, runs the existing contact-sheet builder with a small count/tileWidth and returns it as inline image content with its path.

Where

  • src/tools/stopRecording.ts:57-70
  • src/tools/contactSheet.ts:52-62
  • src/resources.ts:64-70

Problem

stop_recording takes sessionId and save and is described as "Stop a recording gracefully so the file is finalized; returns the path and duration." (stopRecording.ts:57-70). The documented look step is a separate contact_sheet call (contactSheet.ts:52-62 has poster/returnImage), and a poster resource exists (screencast://sessions/{id}/poster, resources.ts:64-70) but tools-only clients do not read resources.

Who benefits

The main journey (start, act, stop, look) always costs an extra tool round trip, and agents that skip it report a recording they never looked at. Assumption: most clients use tools rather than resources for images.

Proposal

Add preview: "none" | "poster" | "sheet" (default none, to keep stop fast and the tools/list budget small) that, after finalizing, runs the existing contact-sheet builder with a small count/tileWidth and returns it as inline image content with its path.

Getting started

  • Relevant files: src/tools/stopRecording.ts, src/tools/contactSheet.ts, src/resources.ts
  • Run tests: npm test (also npm run typecheck and npm run lint); see CONTRIBUTING.md
  • If you change a tool's schema or description, run npm run docs

Filed by repo-audit/full-audit at f0e5ebd. Severity: low. Effort: S. audit-key: enhancement|src/tools/stopRecording.ts|preview

Activity

  1. added
    enhancement
    priority: low
    effort: small
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: smallenhancementpriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions