gmail_last5 for Openclaw

A streamlined CLI utility to fetch and display the five most recent unique emails from your Gmail inbox.

neuralshift1
v1.0.0
Feb 20, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install gmail-last5

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install gmail-last5 using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is gmail_last5?

The gmail_last5 skill is a specialized tool designed to provide instant visibility into your Gmail inbox directly from your command-line interface. By utilizing the gog CLI tool, this Openclaw Skills entry queries your account for the five newest messages and presents them in a clean, human-readable format.

This skill is built for developers and power users who want to stay informed of their latest communications without the distraction of a full email client. It prioritizes speed and efficiency, delivering essential metadata like sender, subject, and date in a concise summary that fits perfectly into a terminal-based environment.

gmail_last5 Use Cases

  • Monitoring the inbox for high-priority incoming messages without leaving your IDE or terminal.
  • Quickly checking for two-factor authentication codes or magic login links.
  • Verifying recent communications from clients or team members during development tasks.
  • Integrating a snapshot of recent email activity into automated daily stand-up routines.

How gmail_last5 Works

  1. The user triggers the skill by executing the gmail_last5 command within their agent interface.
  2. The skill initiates a search request via the gog CLI, specifically targeting the inbox label with a result limit of five.
  3. The gog tool returns the email data in a structured JSON format.
  4. The skill parses the JSON to extract the most relevant information: the sender's identity, the subject line, and the timestamp.
  5. A formatted, concise list is presented to the user, providing a clear overview of recent inbox activity.

gmail_last5 Setup

To use this skill, ensure you have the gog CLI installed and properly authenticated with your Google account.

# Authenticate your account with gog
gog auth login

# Configure the skill with your specific account email if needed
gog gmail search "in:inbox" --max 5 --json --results-only --account [email protected]

If the command fails, verify that your Gmail account is correctly authenticated and that the account string in the command matches your credentials.

gmail_last5 Data Schema & Taxonomy

The skill processes and displays data based on the JSON response from the gog search command. The output is structured as follows:

Attribute Description
Sender The email address or display name of the person who sent the email.
Subject The title or header of the email message.
Date The timestamp of when the email was received.
Inbox Filter The search is restricted to the "in:inbox" label to ensure relevance.

gmail_last5 Advanced Features

  • Support for explicit account targeting to manage multiple Gmail accounts.
  • Automated JSON parsing to ensure data is stripped of unnecessary metadata for better readability.
  • Direct integration with the gog CLI ecosystem for robust and secure Google API interactions.
  • Error handling that provides actionable feedback if authentication sessions expire.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*