keychain_set_login_uris
Configure or modify URIs and match types for a login item in your vault, using replace or merge modes to manage access rules.
Instructions
Set or update the URIs (and per-URI match types) for a login item. mode=replace overwrites; mode=merge updates/adds by uri.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| mode | No | ||
| uris | Yes | ||
| reveal | No |
Implementation Reference
- src/tools/registerTools.ts:1366-1398 (handler)Tool registration and handler implementation for 'keychain_set_login_uris' in src/tools/registerTools.ts.
`${deps.toolPrefix}.set_login_uris`, { title: 'Set Login URIs', description: 'Set or update the URIs (and per-URI match types) for a login item. mode=replace overwrites; mode=merge updates/adds by uri.', inputSchema: { id: z.string(), mode: z.enum(['replace', 'merge']).optional(), uris: z.array( z.object({ uri: z.string(), match: uriMatchInputSchema.optional(), }), ), reveal: z.boolean().optional(), }, _meta: toolMeta, }, async (input, extra) => { if (isReadOnly) return readonlyBlocked(); const sdk = await deps.getSdk(extra.authInfo); const updated = await sdk.setLoginUris({ id: input.id, mode: input.mode, uris: normalizeUrisInput(input.uris) ?? [], reveal: effectiveReveal(input), }); return { structuredContent: { item: updated }, content: [{ type: 'text', text: 'Updated.' }], }; }, );