Coda Search Principals
coda_search_principalsSearch for users and groups to add to a Coda doc's permissions by name or email prefix, returning matching principals before granting access.
Instructions
Search for users and groups that can be added to a doc's permissions.
Returns matching principals (users and groups) based on the query string. Use this to look up a user's email or find groups before calling coda_add_permission. Results include the principal's type, email, and name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"doc_id": "<doc_id>",
"query": "<query>"
},
"name": "coda_search_principals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query (name or email prefix) | |
| doc_id | Yes | The doc ID to search principals in |