Send a JMAP request
jmap_requestExecute JMAP method-call batches with automatic authentication, variable substitution, and optional attachments for direct email operations.
Instructions
JMAP method-call batch with automatic auth. Exactly one of: ops (JSON string: methodCalls array or full envelope) or ops_file (preset path; relative to credential directory). $VAR substitution and optional file attachments: see help topics presets and jmap_cheatsheet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | No | Inline JSON. Mutually exclusive with ops_file. | |
| vars | No | String map for `$PLACEHOLDER` values (keys without `$`). Overrides session keys and `ATTACHMENT_*` when attachments are set. | |
| using | No | Capability URNs merged when `ops` has no `using` (ignored if ops sets `using`). | |
| dry_run | No | Resolve variables/envelope and return the request body without sending it. | |
| ops_file | No | Preset path. Mutually exclusive with ops. | |
| attachments | No | Local files POSTed to session uploadUrl before ops; see help topic presets. | |
| credentials_dir | No | Credential directory for this call (default: ATOMIC_MAIL_CREDENTIALS_DIR or ~/.atomicmail). Use separate paths per account; see help topic multi_account. |