MCPcopy Create free account
hub / github.com/cloudflare/agentic-inbox / toolGetThread

Function toolGetThread

workers/lib/tools.ts:84–91  ·  view source on GitHub ↗
(
	env: Env,
	mailboxId: string,
	threadId: string,
)

Source from the content-addressed store, hash-verified

82// ── get_thread ─────────────────────────────────────────────────────
83
84export async function toolGetThread(
85 env: Env,
86 mailboxId: string,
87 threadId: string,
88) {
89 const stub = getMailboxStub(env, mailboxId);
90 return getFullThread(stub, threadId);
91}
92
93// ── search_emails ──────────────────────────────────────────────────
94

Callers 2

initMethod · 0.90
createEmailToolsFunction · 0.90

Calls 2

getMailboxStubFunction · 0.90
getFullThreadFunction · 0.90

Tested by

no test coverage detected