list_note_collaborators
Retrieve the email addresses of all collaborators on a Google Keep note by providing the note ID.
Instructions
List collaborator emails for a note.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/server/cli.py:339-343 (handler)The MCP tool handler for 'list_note_collaborators'. It retrieves a note by ID and returns a JSON array of collaborator email addresses from note.collaborators.all().
@mcp.tool() def list_note_collaborators(note_id: str) -> str: """List collaborator emails for a note.""" _, note = _get_note_or_raise(note_id) return json.dumps(list(note.collaborators.all())) - src/server/cli.py:339-339 (registration)The tool is registered via the @mcp.tool() decorator, which registers 'list_note_collaborators' with the FastMCP server.
@mcp.tool() - src/server/cli.py:17-22 (helper)Helper function used by list_note_collaborators to retrieve a note by its ID. Returns (keep_client, note) or raises ValueError.
def _get_note_or_raise(note_id: str): keep = get_client() note = keep.get(note_id) if not note: raise ValueError(f"Note with ID {note_id} not found") return keep, note - src/server/keep_api.py:91-91 (helper)The serialize_note function includes the collaborators list in its output payload, which is the same data source used by list_note_collaborators.
'collaborators': list(note.collaborators.all()),