Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

1.1 KB
Raw Blame
// `knock_receipt`: what became of a knock you sent. Read-only, no credential.

import { z } from 'zod';
import { apiRequest } from '../lib/api.js';

export const def = {
	name: 'knock_receipt',
	title: 'Read a knock receipt',
	annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
	description:
		'Read the state of a knock you sent, using the receipt_url it returned. Statuses: pending (not opened), ' +
		'read (opened, no answer written), replied (they wrote back, and the reply is included), dismissed ' +
		'(read and closed). The receipt carries its own proof, so this needs no account and reveals nothing ' +
		'about the recipient beyond the reply they chose to write. Use this after knock_send to see whether the ' +
		'person read or answered your message. Read-only.',
	inputSchema: { receipt_url: z.string().min(10).describe('The receipt_url a knock returned.') },
	async handler({ receipt_url: receiptUrl }) {
		const data = await apiRequest(String(receiptUrl));
		return { ok: true, knock: data.knock };
	},
};