find
Search and retrieve Google Keep notes by matching a query against titles and text, returning results in JSON format with details like id, title, and labels.
Instructions
Find notes based on a search query.
Args:
query (str, optional): A string to match against the title and text
Returns:
str: JSON string containing the matching notes with their id, title, text, pinned status, color and labels
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No |
Implementation Reference
- src/server/cli.py:12-28 (handler)The handler function for the MCP tool named 'find'. It uses the Google Keep API to find notes matching the query and serializes them to JSON.@mcp.tool() def find(query="") -> str: """ Find notes based on a search query. Args: query (str, optional): A string to match against the title and text Returns: str: JSON string containing the matching notes with their id, title, text, pinned status, color and labels """ keep = get_client() notes = keep.find(query=query, archived=False, trashed=False) notes_data = [serialize_note(note) for note in notes] return json.dumps(notes_data)