> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memloom.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Open the OS-native file/folder picker

> What the viewer's Browse buttons call first. Opens the platform's native file or
folder dialog on the daemon's machine and returns the chosen absolute paths. Returns
501 on a system with no native picker (headless Linux without zenity); the viewer
falls back to /context/browse in that case.




## OpenAPI

````yaml /openapi.yaml post /context/pick
openapi: 3.1.0
info:
  title: memloom local API
  version: 0.1.0
  description: >
    The HTTP API served by the `memloom serve` daemon on your machine. The CLI,
    the MCP server,

    and the viewer all route through this API. The daemon is the single owner of
    the store, so

    every client shares one consistent view of your memories.


    No authentication: the daemon binds to `127.0.0.1` only and is reachable
    solely from your

    own machine. Browser clients on other localhost ports are allowed via CORS.
servers:
  - url: http://127.0.0.1:4319
    description: Local memloom daemon
security: []
paths:
  /context/pick:
    post:
      summary: Open the OS-native file/folder picker
      description: >
        What the viewer's Browse buttons call first. Opens the platform's native
        file or

        folder dialog on the daemon's machine and returns the chosen absolute
        paths. Returns

        501 on a system with no native picker (headless Linux without zenity);
        the viewer

        falls back to /context/browse in that case.
      operationId: pickContextPaths
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                mode:
                  type: string
                  enum:
                    - file
                    - folder
                  default: file
      responses:
        '200':
          description: The chosen paths (empty if the dialog was cancelled).
          content:
            application/json:
              schema:
                type: object
                properties:
                  paths:
                    type: array
                    items:
                      type: string
        '501':
          description: No native file picker available on this system.

````