keychain_send_create_encoded
Create secure Bitwarden Send items using base64-encoded JSON or raw JSON input, with options for text notes, hidden content, or file attachments.
Instructions
Create a Send via bw send create. Provide encodedJson (base64) or json (will be bw-encoded). Optional: text, hidden, or file (filename+contentBase64).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encodedJson | No | ||
| json | No | ||
| text | No | ||
| hidden | No | ||
| file | No |
Implementation Reference
- src/tools/registerTools.ts:987-1020 (handler)The tool 'keychain_send_create_encoded' is registered in 'src/tools/registerTools.ts'. Its handler invokes 'sdk.sendCreateEncoded'.
`${deps.toolPrefix}.send_create_encoded`, { title: 'Send Create (Encoded JSON)', description: 'Create a Send via `bw send create`. Provide `encodedJson` (base64) or `json` (will be bw-encoded). Optional: `text`, `hidden`, or `file` (filename+contentBase64).', annotations: { readOnlyHint: false, destructiveHint: false, openWorldHint: true, }, inputSchema: { encodedJson: z.string().optional(), json: z.unknown().optional(), text: z.string().optional(), hidden: z.boolean().optional(), file: z .object({ filename: z.string(), contentBase64: z.string(), }) .optional(), }, _meta: toolMeta, }, async (input, extra) => { if (isReadOnly) return readonlyBlocked(); const sdk = await deps.getSdk(extra.authInfo); const send = await sdk.sendCreateEncoded(input); return { structuredContent: { send }, content: [{ type: 'text', text: 'OK' }], }; }, );