Build Agent Manifest
build_agent_manifestBuilds a signed agent manifest for a site that records published data files and the AI agent that produced them, so other agents can consume and verify the claim.
Instructions
EXPERIMENTAL, opt-in. Step 1 of 2: build a signed 'agent manifest' for a site — a machine-readable statement of what the site publishes and which AI agent produced it, so other agents can consume the data instead of scraping the page AND can verify the claim. Offer this only if the user asks for it; it is not part of a normal deploy. Requires an ACTIVE agent registered for that EXACT domain in the account (APM_NO_AGENT otherwise — register one first with register_ans_agent) whose identity key is ECDSA P-256 (APM_KEY_NOT_SIGNING_CAPABLE for RSA; rotate_ans_identity fixes that without changing the agent's name). Deploy the data files FIRST: this reads each artifact as actually deployed and records its real sha256, and a path that is not there is an error rather than a silent omission. If the site already has a manifest, read it first with read_hosting_file on .well-known/apm.json (or just fetch https:///.well-known/apm.json) and pass its entity/policy/endpoints/notes and each collection's descriptive fields back in - publishing REPLACES the file, and anything you leave out is dropped. This call writes no MANIFEST — but with mark_artifacts it DOES modify the artifact files themselves, because the marker has to be in the bytes before they are hashed. The response's markedArtifacts lists what changed, unmarkedArtifacts says why anything was skipped, and its note explains what an abandoned build leaves behind (a marker pointing at a manifest that does not list the file, which verifies as unclaimed). It returns signingInput (the exact bytes to sign) and manifestId (names those bytes, valid 30 minutes). YOU ALMOST CERTAINLY CANNOT SIGN THIS YOURSELF: the agent's private key belongs to the user and Porkbun never has it. Unless you are running somewhere that holds the key, give the user the signingInput and ask them to sign it with their identity key (ES256, ECDSA P-256 + SHA-256) and hand back the 64-byte r||s signature base64url-encoded. NEVER ask the user to paste a private key, and never accept one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>",
"artifacts": "<artifacts>"
},
"name": "build_agent_manifest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| domain | Yes | Fully qualified domain name in the account, e.g. `example.com` | |
| entity | No | Who publishes the site (name, location, links). | |
| policy | No | How the data may be used, e.g. {training: 'disallow', quote: 'allow', attribution: 'required'}. | |
| artifacts | Yes | The files the manifest should vouch for. | |
| endpoints | No | ||
| mark_artifacts | No | Write an `agent-provenance` line into each file before hashing it, so the document itself points to its manifest and how to verify it. Survives copying and excerpting, which an HTTP header does not. THIS MODIFIES THE LIVE FILES, before anything is signed — it has to, or the recorded hashes would not match, so it needs the `hosting` permission just like publishing (a build WITHOUT this flag only reads, and works with a read-only key). Skipped for formats that cannot carry a comment safely: JSON, images, and CSV (a leading # line would be read as the header row). |