You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: `List all requests for the currently selected page`,
37
+
description: `List all requests for the currently selected page. By default, only shows requests since the last navigation. To preserve requests across navigations, first call enable_network_log_preservation before navigating.`,
description: `Enable network log preservation mode. When enabled, all network requests are preserved across page navigations and response bodies are automatically captured. By default, logs are cleaned on navigation for performance.`,
92
+
description: `Enable network log preservation mode to keep ALL network requests across navigations. IMPORTANT: Call this BEFORE navigating or interacting with the page if you want to analyze request patterns across multiple actions. When enabled, all request/response bodies are automatically captured and cached for later analysis. Use this when you need to compare requests before/after certain actions or track API calls across page transitions.`,
description: `Disable network log preservation mode and optionally clear existing preserved logs. After disabling, network logs will be cleaned on navigation (default behavior).`,
155
+
description: `Disable network log preservation mode and optionally clear existing preserved logs. After disabling, network logs will be cleaned on navigation (default behavior). Call this when you're done analyzing preserved requests to restore normal performance.`,
'💡 Normal behavior restored: network logs will be cleared on navigation.',
192
+
);
168
193
},
169
194
});
170
195
171
196
exportconstclearPreservedNetworkLogs=defineTool({
172
197
name: 'clear_preserved_network_logs',
173
-
description: `Clear all preserved network logs for the currently selected page. This does not disable preservation mode.`,
198
+
description: `Clear all preserved network logs for the currently selected page without disabling preservation mode. Use this to reset the preserved request history while keeping preservation active for future requests.`,
174
199
annotations: {
175
200
category: ToolCategories.NETWORK,
176
201
readOnlyHint: false,
177
202
},
178
203
schema: {},
179
204
handler: async(_request,response,context)=>{
205
+
if(!context.isNetworkLogPreservationEnabled()){
206
+
response.appendResponseLine(
207
+
'⚠️ Network log preservation is not enabled. No preserved logs to clear.',
208
+
);
209
+
response.appendResponseLine(
210
+
'💡 TIP: Call enable_network_log_preservation first to start preserving logs.',
0 commit comments