recipe-search-and-export-emails

Search Gmail messages by query and export results to JSON or CSV.

8|1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill recipe-search-and-export-emails-niclasmartinsson-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recipe-search-and-export-emails
Source: https://github.com/niclasmartinsson-sys/google-workspace-cli/tree/main/skills/recipe-search-and-export-emails
Command: npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill recipe-search-and-export-emails-niclasmartinsson-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines the process of locating Gmail messages that match specific queries and exporting them for review, reducing manual triage time.

Core Features & Use Cases

  • Search: Query Gmail messages using common predicates (from:, after:, subject:, label:).
  • Retrieve & Export: Fetch full message data and export results to JSON or CSV for downstream review.
  • Use Case: Ideal for audit trails, project reviews, and onboarding workflows that require review-ready email data.

Quick Start

Search Gmail messages with a query and export the results for review.

Frequently Asked Questions about recipe-search-and-export-emails

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export Gmail messages matching a search query to CSV or JSON?

You can export Gmail messages to JSON or CSV by using standard search predicates like from:, after:, subject:, or label: to retrieve and download full message data for downstream review.

Can I automate Gmail email triage and audit trails across my domain?

You can automate routine email triage and audit trails by querying messages across accounts using standard Gmail search predicates and exporting the fetched results for pipeline review.

What Gmail search operators are supported for filtering messages before export?

Supported Gmail search operators include from:, after:, subject:, and label: constraints, allowing you to filter messages before fetching and exporting the full data.

Do I need a specific Gmail API environment setup to search and export emails?

Yes, this requires the gws Gmail sub-skill to be loaded and uses Gmail APIs to list messages, fetch full message data, and export the results for review.

What is the best way to retrieve full Gmail message data for project reviews?

The best way to retrieve full Gmail message data for project reviews is to query messages with specific predicates and export the fetched results to JSON or CSV.