Skip to content

Instantly share code, notes, and snippets.

View tanaikech's full-sized avatar

Kanshi TANAIKE tanaikech

View GitHub Profile
@tanaikech
tanaikech / submit.md
Created June 27, 2025 07:16
Gemini CLI with MCP Server Built by Web Apps of Google Apps Script

Gemini CLI with MCP Server Built by Web Apps of Google Apps Script

Abstract

The Gemini CLI can be integrated with Google Workspace via Google Apps Script to securely access personal data, enabling powerful automations like email summaries and calendar management.

Introduction

The recently released Gemini CLI is a powerful command-line interface for interacting with Google's Gemini models and cloud resources. Ref While powerful on its own, its utility can be significantly enhanced by connecting it to a user's personal Google resources, such as Google Sheets, Docs, Slides, Gmail, and Calendar.

@tanaikech
tanaikech / submit.md
Created June 26, 2025 03:02
A Practical Analysis of the Gemini API's URL Context Tool

A Practical Analysis of the Gemini API's URL Context Tool

Introduction

The Gemini API recently introduced the URL context tool, a feature designed to allow the model to directly fetch and utilize content from specified URLs to ground its responses. Ref

This report provides a practical demonstration of this tool's capabilities. We will investigate its impact on two critical aspects of AI model interaction: the accuracy of the generated response and the total token consumption, which directly affects API costs.

@tanaikech
tanaikech / submit.md
Last active June 23, 2025 19:18
Managing Smart Chips on Google Sheets with Sheets API

Managing Smart Chips on Google Sheets with Sheets API

Overview

Google Sheets now supports managing smart chips via its API, enabling retrieval and placement with Apps Script and other languages.

Description

@tanaikech
tanaikech / submit.md
Created June 19, 2025 02:20
Consolidating Generative AI Protocols: A Single Server Solution for MCP and A2A

Consolidating Generative AI Protocols: A Single Server Solution for MCP and A2A

Abstract

A new unified Google Apps Script now deploys both Model Context Protocol (MCP) and Agent2Agent (A2A) networks as a single server, streamlining AI model integration for Google Workspace users.

Introduction

@tanaikech
tanaikech / submit.md
Created June 16, 2025 01:38
Growing Image Generation with Gemini API: Python and Node.js Now Supported

Growing Image Generation with Gemini API: Python and Node.js Now Supported

Abstract

This article announces that the Gemini API's Python client library now supports "growing image" generation, a feature previously unavailable. Sample scripts for Python and Node.js are provided to demonstrate this new capability.

Introduction

@tanaikech
tanaikech / submit.md
Created June 12, 2025 06:17
Gmail Processing using MCP Network Powered by Google Apps Script

Gmail Processing using MCP Network Powered by Google Apps Script

Abstract

This report details an MCP network using Google Apps Script for both server and client, enabling automated, secure Gmail processing to boost efficiency.

Introduction

@tanaikech
tanaikech / submit.md
Last active June 12, 2025 10:56
Text-To-Speech (TTS) using Gemini API with Google Apps Script

Text-To-Speech (TTS) using Gemini API with Google Apps Script

Description

This script provides a simple example for generating Text-To-Speech (TTS) using the Gemini API within Google Apps Script. The Gemini API generates audio data in the audio/L16;codec=pcm;rate=24000 format, which is not directly playable. Since there's no built-in method to convert this to a standard audio/wav format, this sample script includes a custom function to handle the conversion.

Limitations and Considerations

  • The provided convertL16ToWav_ function is specifically designed for the audio/L16;codec=pcm;rate=24000 MIME type. Using it with other audio formats will result in an error.
  • The script uses a hardcoded WAV header. This header assumes specific audio parameters (e.g., sample rate, bit depth, number of channels) that match the Gemini API's output for this format. If the Gemini API's output format changes, this header might need adjustment.
@tanaikech
tanaikech / submit.md
Last active June 6, 2025 06:07
Importance of Time Information in Gemini and Current Time Handling

Importance of Time Information in Gemini and Current Time Handling

Abstract

This report investigates how Gemini handles current time information, particularly when using the Gemini API. We found that while the Gemini web interface knows the current time, the Gemini API does not inherently. Therefore, applications must explicitly provide current time information in API calls for accurate time-sensitive responses.

Introduction

@tanaikech
tanaikech / submit.md
Created June 5, 2025 01:59
Automating Straight to Smart Quote Conversion in Google Docs

Automating Straight to Smart Quote Conversion in Google Docs

Abstract

For extensive Google Docs, manually converting straight to smart quotes is inefficient. This report offers an automated solution using Google Apps Script, saving time and effort.

Description

@tanaikech
tanaikech / submit.md
Created May 28, 2025 00:53
Enabling Collaborative Agent Systems through Google Apps Script-based Agent2Agent (A2A) Network

Enabling Collaborative Agent Systems through Google Apps Script-based Agent2Agent (A2A) Network

Abstract

This report details the Agent2Agent (A2A) network built with Google Apps Script's Web Apps. It facilitates communication between diverse AI agents, overcoming platform limitations. Key improvements include parallel task execution with asynchronous processes and enhanced security through secure access token handling and user-specific Web App availability, demonstrating a robust and secure A2A implementation.

Introduction