Publish Agent Manifest
publish_agent_manifestPublish a signed agent manifest to /.well-known/apm.json so anyone can verify your site's files without an API key. Validates the signature and re-hashes artifacts before writing.
Instructions
EXPERIMENTAL. Step 2 of 2: publish the signed agent manifest to the site, using the manifestId from build_agent_manifest and the signature the user produced over its signingInput. signature must be the 64-byte r||s pair base64url-encoded — NOT the DER/ASN.1 blob openssl dgst -sign writes, which has to be converted first. If the user hands you DER output, say so rather than sending it. Porkbun verifies the signature exactly as an outside party would BEFORE writing anything: if it does not verify, nothing is published and the failing check is named (APM_SIGNATURE_INVALID). The artifacts are re-hashed too, so if the site changed since the manifest was built you get APM_ARTIFACTS_CHANGED and should build again. On success the manifest is written to /.well-known/apm.json and the response includes manifestSha256 and a verifyUrl anyone can check with no API key. SERVING CAN LAG THE WRITE by up to a couple of minutes, so if you verify immediately and the response's manifestSha256 does not match the one you just published, you are reading the previous file - wait and check again rather than reporting a failure. The manifest_id is single-use once a publish succeeds (a failed one can be retried); re-using a spent one returns APM_MANIFEST_ALREADY_PUBLISHED, which is not the same as APM_MANIFEST_EXPIRED. Tell the user they must re-publish whenever a listed file changes, because the manifest records hashes and an edited file stops matching until they do. Use dry_run to confirm the signature is good without writing.
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>",
"manifest_id": "<manifest_id>",
"signature": "<signature>"
},
"name": "publish_agent_manifest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Fully qualified domain name in the account, e.g. `example.com` | |
| dry_run | No | Verify and report what would be published, without writing. | |
| signature | Yes | ES256 signature over signingInput: 64-byte r||s, base64url. | |
| manifest_id | Yes | From build_agent_manifest. Guarantees the bytes verified are the bytes signed. |