AbortSignal:
Architecture
Tool lifecycle and dynamic registration
Why WebMCP tools must be registered, replaced, and removed as page context changes.
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
Descriptions and schemas must be replaced when application context changes;
stale or duplicate registrations make discovery ambiguous. Tool-change
notifications allow consumers to refresh the catalog after registration or
cleanup.
See Build your first React tool and the
WebMCP standard API.
