Gmail / warm
Get Thread
Retrieve a single Gmail thread including messages and metadata. Use format=metadata for lighter reads or full for body payloads.
Quick Start
aweb inspect gmail.get_thread
aweb add gmail
aweb plan "use Gmail get thread in an agent workflow"import Aweb, { Agent } from '@aweb/sdk';
const aweb = new Aweb({ apiKey: process.env.AWEB_API_KEY });
const agent = new Agent({ tools: aweb.tools });
agent.add('gmail');
const plan = await agent.plan('Use Gmail for this workflow');
const tool = await aweb.tools.inspect('gmail.get_thread');
console.log(plan.nextAction);
console.log(tool.inputSchema);Tool Card
Tool idgmail.get_thread
ProviderGmail (gmail)
Tool nameget_thread
Activationwarm
Healthhealthy
Trust score1.00
Transportstreamable_http
Latencynot yet measured
Cost0
Requirements and Governance
Authoauth_2_1_pkce
Credentialsetup_required
Workspacerequired
Approvalnone
RiskREAD
Permissionshttps://www.googleapis.com/auth/gmail.readonly, https://www.googleapis.com/auth/gmail.compose, https://www.googleapis.com/auth/gmail.send, read
Credential setup/api/mcp-warehouse/credentials/gmail/init
Schemas
{
"type": "object",
"properties": {
"thread_id": {
"type": "string",
"description": "Gmail thread id."
},
"format": {
"type": "string",
"enum": [
"full",
"metadata",
"minimal"
],
"description": "Response format. Default: metadata."
}
},
"required": [
"thread_id"
],
"additionalProperties": false
}Examples
[
{
"objective": "Use Gmail get thread in an agent workflow.",
"args": {
"thread_id": "<thread_id>",
"format": "<format>"
}
}
]