diff --git a/.pi/extensions/clear-export.ts b/.pi/extensions/clear-export.ts index 820bc38..cb9375e 100644 --- a/.pi/extensions/clear-export.ts +++ b/.pi/extensions/clear-export.ts @@ -93,7 +93,7 @@ export default function (pi: ExtensionAPI) { // Build state from in-memory data (not available in a separate pi process) const state = { systemPrompt: ctx.getSystemPrompt(), - tools: ctx.getAllTools(), + tools: pi.getAllTools(), }; // Export session to HTML with full in-memory state