Search and read contacts in a Nextcloud address book over CardDAV, on your own server.
Connect it
$ lanes link connect nextcloud_contacts --profile personal --workspace localThis takes an app password rather than a browser sign-in. One password covers nextcloud_calendar as well, because they share a credential.
Because it needs no browser, an agent with a shell can do the whole setup:
$ printf %s "$TOKEN" | lanes link secrets set nextcloud/main --profile personal
$ lanes link connect nextcloud_contacts --id main --non-interactive --json --profile personalCredentials go in on stdin, never as a flag: an argument lands in your shell history, in ps output, and in any transcript.
What your agent can do
CardDAV gives a fixed set of capabilities, the same on every server that speaks it:
nextcloud_contacts.list_addressbooksnextcloud_contacts.search_contactsnextcloud_contacts.create_contact
What is recorded
Every call is recorded, allowed or refused. The rule is to keep the shape and withhold the words: an audit log that reproduced the content would be a second copy of the thing it was meant to make accountable.
Identifiers such as addressbook and limit are kept. Everything that carries your words is withheld.
What an entry holds and how to read one is on the audit log.
Narrowing what it may do
Connecting grants the read bundle. Tightening it happens on your machine and takes effect at once:
$ lanes link policy deny 'nextcloud_contacts.*' --connection nextcloud_contacts.main --profile personal --workspace localA deny always beats an allow, whatever the order in the file. See Scopes and permissions for widening, and for what can and cannot be set per connection.
Untested
The manifest is right in every way the code can check: it validates, its tools generate inside the budget, its scopes are described, and its endpoint answered a probe. Nobody has yet connected it to a real account, which is the part only a real account proves.
If you connect it, say so and this note comes off.
Next: every provider, or Connections for what a connection is and the methods behind one.