sharing
kcap sharing list <objectKey>kcap sharing candidates <objectKey> [<query>]kcap sharing set <objectKey> <audienceKey> --relation <relation>kcap sharing remove <objectKey> <audienceKey>Changes who can open something, one grant at a time. list shows who it is shared with and what you may change. candidates shows who you could share it with, filtered by <query>: each candidate’s key and the relations it may take, with the default starred; it says so when you may not share the thing. set gives one audience a grant, or moves the one it holds to another relation. remove takes one audience’s grant away
The object key comes from the thing’s own listing: kcap page publish, list, get and search print a page’s. Audience keys come from candidates or list. Pass both exactly as printed. A relation shows as its label with its id in parentheses, and --relation takes the id
kcap sharing candidates <objectKey> platformkcap sharing set <objectKey> <audienceKey> --relation <relation>The web app’s share dialog does the same, and your agent uses the kcap-sharing tools, which kcap mcp sharing serves