Create a product
swop_create_productStart selling something in one call: creates a product that people can buy on the linked account's Swop SmartSite and AI agents can buy in USDC over x402, with no store setup, payment processor, or verification needed. To change an existing product use swop_update_product instead. name, description and image are all REQUIRED by the backend. Confirm name and price with the user before creating. Then call swop_feature_product to show it on the SmartSite and swop_get_product_link to share it.
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": {
"name": "<name>",
"description": "<description>",
"priceUsd": "<priceUsd>",
"image": "<image>"
},
"name": "swop_create_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Product name | |
| image | Yes | Primary product image URL (required) | |
| nftType | No | Fine-grained type; overrides productType. phygital/menu are physical, the rest digital | |
| keywords | No | Search keywords | |
| priceUsd | Yes | Price in USD (settles in USDC) | |
| variants | No | Buyer-selectable options. Replaces the existing set when given. | |
| mintLimit | No | Inventory available, default 1 | |
| description | Yes | Product description (required) | |
| extraImages | No | Additional image URLs, shown after the primary one | |
| productType | No | physical (ships), digital (default), or in_person_checkout | |
| shippingCost | No | Flat shipping cost in USD | |
| requiresShipping | No | Physical goods: collect a shipping address | |
| royaltyRecipient | No | Wallet receiving royalties | |
| royaltyPercentage | No | Resale royalty percent | |
| digitalDeliveryNote | No | Digital goods: what the buyer receives after purchase |