getAllTools() is on the ExtensionAPI (pi), not on ExtensionContext (ctx).
Registers a /clear slash command as a project-local extension. Prompts for a transcript name (spaces → dashes), exports the full session HTML (with in-memory state) to transcripts/<name>.html, then starts a new session with parent tracking.