---
title: "Get a single dev document by title or id. Returns full content."
method: POST
path: "/api/mcp/tools/get_dev_doc"
tags: ["dev-docs"]
---

# Get a single dev document by title or id. Returns full content.

`POST /api/mcp/tools/get_dev_doc`

## Request

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

Get a single dev document by title or id. Returns full content.

## Request body

- object
  - `title` string: Document title (e.g., project-a-memory.md)
  - `id` string: Document UUID
  - `category` string: Subcategory (claude, cursor, etc.) to disambiguate title
  - `include_versions` boolean: Include version history (default: false)

## 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)
