Google AI Studio | Conversation/Chat Markdown-Export/Download (API-Based)

Exports the full conversation to Markdown. Uses a recursive scanner to find the chat history regardless of API changes.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ئاپتورى
piknockyou
بۈگۈن قاچىلانغىنى
6
جەمئىي قاچىلانغىنى
73
باھا نومۇرى
0 0 0
نەشرى
1.5
قۇرۇلغان ۋاقتى
2025-11-29
يېڭىلانغان ۋاقتى
2025-11-30
Size
10.3 KB
ئىجازەتنامىسى
MIT
قوللايدىغىنى

Google AI Studio | Conversation/Chat MarkDown-Export/Download (API-Based)

Instantly export complete Google AI Studio conversations to Markdown by intercepting the internal API. Features a native toolbar integration, smart recursive parsing, and seamless support for navigating between chats without refreshing.

Features

  • API-Level Extraction: Intercepts the raw ResolveDriveResource network request to capture the exact chat data sent from Google's servers.
  • Instant Capture: No scrolling, no waiting, and no rendering delays. The data is captured the moment the conversation loads.
  • Seamless Navigation: Works perfectly with AI Studio's Single Page Application (SPA) design. Just click a different chat in the sidebar, and the exporter automatically updates to the new conversation.
  • Smart Recursive Parsing: Uses an advanced algorithm to locate chat history within Google's complex JSON structure, making it resilient to API changes.
  • Native Toolbar Integration: Adds a seamless "Download" button to the existing AI Studio toolbar using Material Design styling.
  • Complete History: Captures every user prompt and AI response in the conversation, ensuring nothing is missed due to UI virtualization.
  • Clean Markdown Output: Generates a formatted .md file ready for archiving or use with other LLM agents.

Installation

Requirements

Steps

  1. Install one of the userscript managers listed above.
  2. Download/Install this script.
  3. The script will automatically activate on https://aistudio.google.com/*.

Usage

  1. Navigate to any conversation in Google AI Studio.
  2. Look for the Download Icon in the top-right toolbar.
  3. Click the button to instantly download the Markdown (.md) file.
  4. Switching Chats? Just click a different prompt in the sidebar. The script automatically detects the new network request and is ready to download the new chat immediately.

(Note: If you just installed the script for the first time, you may need to refresh once to initialize the network hooks.)

How It Works

Unlike traditional scrapers that try to read text from the screen, this script uses a more robust approach:

  1. Network Interception: It hooks into the browser's XMLHttpRequest to listen for specific Google Drive resource requests (ResolveDriveResource).
  2. Data Capture: When you open or switch to a chat, Google sends the data to your browser. The script silently saves a copy of this raw JSON data in the background.
  3. Recursive Search: It scans the deeply nested JSON structure to find the specific array containing "user" and "model" dialogue, regardless of where Google hides it.
  4. Formatting: It converts the raw data into a clean Markdown format.
  5. Download: It generates a file named after the prompt title (or a timestamp) and triggers a browser download.

FAQ

Q: I don't see the button. A: If you just installed the script, refresh the page once. The button appears automatically once valid chat data is detected in the network stream.

Q: Does this scrape the screen? A: No. It reads the raw data file directly from the network traffic. This is faster and more accurate than screen scraping and captures the entire history instantly.

Q: Is it safe? A: Yes. The script runs entirely locally in your browser. It does not send your data to any third-party server; it simply converts the data Google sent you into a text file.