---
title: "List live env_sync graph nodes for the calling user with optional node_type and HLC-since filters."
method: POST
path: "/api/mcp/tools/graph_list_nodes"
tags: ["misc"]
---

# List live env_sync graph nodes for the calling user with optional node_type and HLC-since filters.

`POST /api/mcp/tools/graph_list_nodes`

## Request

- Base URL: `https://api.ainote.dev`
- URL: `https://api.ainote.dev/api/mcp/tools/graph_list_nodes`
- Auth: API key in header `Authorization`

List live env_sync graph nodes for the calling user with optional node_type and HLC-since filters.

## Request body

- object
  - `node_type` 'skill' | 'hook' | 'mcp_server' | 'secret' | 'setting_fragment'
  - `updated_since_hlc` string
  - `limit` integer
  - `cursor` string: Opaque cursor (created_at ISO + id) from previous page's next_cursor
  - `device_id` string: Optional calling device id for audit attribution. The X-Ainote-Device-Id header is the canonical source; this argument is the backwards-compatible fallback for clients that predate the header. If both are sent and disagree, the request is rejected (DEVICE_MISMATCH).

## Response `200`

Tool executed successfully

- ToolSuccessResponse: Successful tool invocation. `content` mirrors the MCP `tools/call` result shape: an array of content blocks (text and optionally a structured resource payload).
  - `content` object[]
    - `type` 'text' | 'resource'
    - `text` string

## Other responses

- `400`: Invalid arguments or business-rule violation
- `401`: Missing or invalid McpKey

---

[API](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror.md) · [All operations](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror/llms.txt) · [OpenAPI document](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror/revisions/f6c91d85e027?raw)
