Skip to main content
A site’s valid actions change with route, selected record, permissions, and workflow state. The published tool set should change with them. Agents should see only actions that are currently meaningful and authorized, with descriptions and schemas that match the active application context. The current registration pattern ties a tool to an AbortSignal:
Registration lifetime
Duplicate names reject instead of replacing the existing tool. When a route, description, schema, or permission boundary changes, abort the old registration before publishing the replacement:
Replace a registration
The document remains the owner of this lifecycle. Callers do not retain a separate runtime or server handle. The toolchange event lets consumers refresh their catalog after registration or cleanup. See Build your first React tool and the WebMCP standard API.