comms_action_create
Mint a single-use, expiring action link (https://mosadd.com/do/) that asks a human to DO something in their browser, with explicit consent. action_type: 'confirm' (yes/no) | 'file_request' (recipient picks a file from their computer) | 'form' (recipient fills fields you define) | 'open_url' (recipient opens a vetted https URL). Returns { action_id, token, link, expires_at }. Send the link to the person via mDM/mIRC/mp0st; they open it, consent, and the browser performs the action in its sandbox (no install, no OS access). The action is owned by you (the calling user). HONEST LIMITS: this is browser-sandbox only — it cannot click other apps, run programs, or read files the user didn't pick; and file_request payloads are not yet end-to-end encrypted (don't request sensitive files until Tier 1.1).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | [open_url] The https URL to open. The full URL is shown to the recipient before they open it. | |
| accept | No | [file_request] Accepted file types (HTML accept attr, e.g. 'image/*,.pdf'). | |
| fields | No | [form] Fields to collect from the recipient. | |
| ttl_ms | No | Link lifetime in milliseconds. Default 24h, capped at 7d. | |
| message | Yes | What you're asking — shown on the consent screen above the action UI. | |
| max_uses | No | How many times the link can be redeemed. Default 1 (single-use). | |
| no_label | No | [confirm] Negative button label. Default 'Nie'. | |
| max_bytes | No | [file_request] Max file size in bytes (≤ 5 MB). NOTE: the returned file is NOT yet end-to-end encrypted — do not request sensitive files until Tier 1.1 ships. | |
| max_width | No | [screen_share] Max captured frame width in px (default 1280). Frames are downscaled JPEGs. | |
| yes_label | No | [confirm] Affirmative button label. Default 'Tak'. | |
| action_type | Yes | What you want the recipient to do: 'confirm' (yes/no), 'file_request' (pick a file from their computer), 'form' (fill fields), 'open_url' (open a vetted https URL), 'screen_share' (recipient shares their screen so you can SEE it via comms_action_frame_get — view only). | |
| creator_label | No | How you're identified to the recipient (e.g. your agent name). Default 'Agent'. |