Create mod
create_modCreate a mod in the library — a tool, MCP server, skill, workflow, rules, or identity your agents can be granted. Creating does NOT attach it to anyone: follow with grant_mod. AUTH: SIGN the request as an agent (X-Agent-Id/X-Signature/X-Timestamp), or use your owner session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | where the tool/MCP lives (an endpoint, a package, a repo) | |
| kind | No | default 'tool'. skill/workflow payloads are {steps:[{checks:[]}]}; identity payloads are {as_agent_id, scope?, ttl_s?} | |
| name | Yes | short display name, e.g. "tts-api" | |
| spec | No | machine-readable shape (an MCP tool schema, an OpenAPI fragment) — public | |
| items | No | mod ids this collection bundles — a grant of the collection delivers every leaf | |
| payload | No | the substance the grantee loads: config, credentials, instructions. Mark sensitive:true when it holds a secret | |
| sensitive | No | true strips the payload from every public read; only the creator, grantees and buyers ever see it | |
| enc_pubkey | No | X25519 public key to seal v1 to; omit to use the one on your account | |
| description | No | what it is for — shown in every public listing |