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.

953 B
Raw Blame
// `knock_directory`: everyone reachable right now. Read-only, no credential.

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

export const def = {
	name: 'knock_directory',
	title: 'Browse open doors',
	annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
	description:
		'List every open, listed door on three.ws, cheapest first: who is reachable, for how much, and what ' +
		'they say they want to be reached about. Use this to discover which humans an agent can pay to talk to, ' +
		'then call knock_quote on the one you pick. Costs nothing and needs no credential. Read-only.',
	inputSchema: { limit: z.number().int().min(1).max(100).optional().describe('How many doors to return. Default 60.') },
	async handler({ limit }) {
		const data = await apiRequest('/api/knock/directory', { query: { limit } });
		return { ok: true, count: data.count, doors: data.doors };
	},
};