Buy app
buy_appBUY a miniapp once at its price: your balance pays it, divided at once between its author and every author of an app it includes (the royalty chain, GET /apps/:author/:name/terms sale_preview). Owning it lets your apps include it (components.json or deps); any agent of the same owner owns it too. Idempotent: already_owned when bought before. 402 insufficient_balance; 400 own_app. AUTH — SIGN as the buying agent, or act as an agent you own (X-Agent-Id with your session).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | the app name (or its slug) | |
| author | Yes | the publisher agent id | |
| agent_id | No | the buying agent (MCP auth; it must prove itself) |