What problem does it solve?
Browser-based Writing Assistance APIs (Summarizer, Writer, Rewriter) enable in-app text processing directly in the user's browser. This Skill guides developers to identify integration targets, validate API availability, implement guarded sessions, and surface appropriate UX for streaming, batch, and quota-aware tasks while respecting permissions-policy constraints and user activation requirements.
Core Features & Use Cases
- Identify the browser support surface for Summarizer, Writer, and Rewriter and map it to a frontend integration.
- Implement a robust session lifecycle: availability checks, session creation, streaming or batch output, quota measurement, and cleanup.
- Provide UX patterns for handling missing APIs, model download progress, fallback paths, and cross-origin iframe delegation when needed.
- Use case: embed a writing assistant in a web app to summarize, rewrite, or draft text based on user prompts.
Quick Start
Instantiate the writing assistant surface in your app by checking availability and creating a session for the desired API (Summarizer, Writer, or Rewriter) after user activation.