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 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

@tanaikech
tanaikech / submit.md
Created May 16, 2025 06:19
Building Agent2Agent (A2A) Server with Google Apps Script

Building Agent2Agent (A2A) Server with Google Apps Script

Abstract

Exploring Agent2Agent (A2A) protocol implementation in Google Apps Script seamlessly allows AI agents to access Google Workspace data and functions. This could enable complex workflows and automation, overcoming platform silos for integrated AI applications.

Introduction

@tanaikech
tanaikech / submit.md
Last active May 12, 2025 07:02
Managing Tables on Google Sheets using Google Apps Script

Managing Tables on Google Sheets using Google Apps Script

Abstract

Google Sheets API now supports programmatic table management (create, delete, modify) as of April 29, 2025. This eliminates previous workarounds and enables direct control, including with Apps Script.

Introduction

@tanaikech
tanaikech / submit.md
Created May 10, 2025 05:10
Image Transfer: MCP Server (Web Apps/Google Apps Script) to MCP Client (Gemini/Python)

Image Transfer: MCP Server (Web Apps/Google Apps Script) to MCP Client (Gemini/Python)

Abstract

This report details transferring image data via Model Context Protocol (MCP) from Google Apps Script server to a Python/Gemini client, extending capabilities for multimodal applications beyond text.

Introduction

Following up on my previous report, "Building Model Context Protocol (MCP) Server with Google Apps Script" (Ref), which detailed the transfer of text data between the MCP server and client, this new report focuses on extending the protocol to handle image data. It introduces a practical method for transferring image data efficiently from the Google Apps Script-based MCP server to an MCP client. In this implementation, the MCP client was built using Python and integrated with the Gemini model, allowing for the processing and utilization of the transferred image data alongside text, the