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.

5.2 KB
Raw Blame
{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://three.ws/.well-known/3d-agent-card.schema.json",
	"title": "three.ws Card v1",
	"description": "Strict superset of the ERC-8004 registration card (https://eips.ethereum.org/EIPS/eip-8004#registration-v1) for agents whose primary embodiment is a 3D model. Pointed to by the ERC-721 tokenURI on the Identity Registry.",
	"type": "object",
	"required": ["type", "name", "description", "model"],
	"properties": {
		"type": {
			"description": "Conformance URI. MUST include the ERC-8004 registration-v1 URI; SHOULD include the three.ws Card v1 URI.",
			"oneOf": [
				{ "type": "string" },
				{ "type": "array", "items": { "type": "string" }, "minItems": 1 }
			]
		},
		"name": { "type": "string", "minLength": 1, "maxLength": 128 },
		"description": { "type": "string", "minLength": 1, "maxLength": 2048 },
		"image": {
			"type": "string",
			"description": "Poster / preview image. SHOULD be ipfs:// for immutability."
		},
		"active": { "type": "boolean" },

		"services": {
			"type": "array",
			"description": "ERC-8004 service endpoints (web, A2A, MCP, etc).",
			"items": {
				"type": "object",
				"required": ["name", "endpoint"],
				"properties": {
					"name": { "type": "string" },
					"endpoint": { "type": "string", "format": "uri" },
					"version": { "type": "string" }
				}
			}
		},

		"x402Support": { "type": "boolean" },

		"registrations": {
			"type": "array",
			"description": "On-chain registrations as CAIP-10 references. EVM (ERC-8004 IdentityRegistry): eip155:<chainId>:0x<registry>. Solana (Metaplex Core agent collection): solana:<genesisHash>:<collectionAddress>, with agentId set to the asset address.",
			"items": {
				"type": "object",
				"required": ["agentId", "agentRegistry"],
				"properties": {
					"agentId": { "type": ["integer", "string"] },
					"agentRegistry": {
						"type": "string",
						"pattern": "^(eip155:[0-9]+:0x[a-fA-F0-9]{40}|solana:[1-9A-HJ-NP-Za-km-z]{32,44}:[1-9A-HJ-NP-Za-km-z]{32,44})$"
					}
				}
			}
		},

		"onchain": {
			"type": "object",
			"description": "Canonical deployment descriptor for the agent's primary on-chain identity. Consumed by the three.ws on-chain badge (src/shared/onchain-badge.js). For Solana, contract_or_mint is the Metaplex Core asset address.",
			"required": ["family", "chain"],
			"properties": {
				"family": { "type": "string", "enum": ["solana", "evm"] },
				"chain": { "type": "string", "description": "CAIP-2 chain id, e.g. solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp or eip155:8453." },
				"cluster": { "type": "string", "enum": ["mainnet", "devnet"] },
				"contract_or_mint": { "type": "string" },
				"collection": { "type": "string" },
				"metadata_uri": { "type": "string" },
				"owner": { "type": "string" },
				"tx_hash": { "type": "string" },
				"onchain_id": { "type": "string" },
				"confirmed_at": { "type": "string" }
			}
		},

		"supportedTrust": {
			"type": "array",
			"items": { "type": "string", "enum": ["reputation", "validation", "tee"] }
		},

		"model": {
			"type": "object",
			"description": "3D embodiment. Required for three.ws Card v1.",
			"required": ["uri", "format", "sha256"],
			"properties": {
				"uri": {
					"type": "string",
					"description": "Pointer to the GLB/glTF/VRM file. SHOULD be ipfs:// for immutability."
				},
				"format": {
					"type": "string",
					"enum": ["gltf-binary", "gltf", "vrm"]
				},
				"sha256": {
					"type": "string",
					"pattern": "^[a-f0-9]{64}$",
					"description": "Lowercase hex SHA-256 of the model bytes. Lets consumers verify the file independently of the URI."
				},
				"sizeBytes": { "type": "integer", "minimum": 0 },
				"polygonCount": { "type": "integer", "minimum": 0 },
				"boundingBox": {
					"type": "object",
					"description": "Axis-aligned bounding box in meters, model space.",
					"required": ["min", "max"],
					"properties": {
						"min": {
							"type": "array",
							"items": { "type": "number" },
							"minItems": 3,
							"maxItems": 3
						},
						"max": {
							"type": "array",
							"items": { "type": "number" },
							"minItems": 3,
							"maxItems": 3
						}
					}
				},
				"license": {
					"type": "string",
					"description": "SPDX license identifier or URL to a license document."
				}
			}
		},

		"manifest": {
			"type": "object",
			"description": "Optional pointer to the full off-chain agent manifest (see specs/AGENT_MANIFEST.md). Use when the agent has a brain/voice/skills bundle.",
			"required": ["uri"],
			"properties": {
				"uri": { "type": "string" },
				"spec": { "type": "string", "description": "e.g. \"agent-manifest/0.2\"" }
			}
		},

		"validation": {
			"type": "object",
			"description": "Optional pointer to a signed validation report (see public/validation/REPORT_FORMAT.md).",
			"required": ["reportUri"],
			"properties": {
				"reportUri": { "type": "string" },
				"reportType": {
					"type": "string",
					"description": "e.g. \"agent-validation-report/0.1\""
				},
				"validator": { "type": "string", "pattern": "^0x[a-fA-F0-9]{40}$" }
			}
		},

		"previousVersion": {
			"type": "string",
			"description": "URI of the prior agent card (provenance chain). SHOULD be ipfs:// content hash."
		}
	}
}