Claude · Schema

DocumentBlockParam

A document content block for PDFs and text documents.

Artificial IntelligenceChatbotConversational AIGenerative AILarge Language ModelsMachine LearningNatural Language Processing

Properties

Name Type Description
type string
source object The source of the document.
title string Optional title for the document.
context string Optional context about the document.
citations object Citation configuration for the document.
View JSON Schema on GitHub

JSON Schema

claude-messages-document-block-param-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DocumentBlockParam",
  "type": "object",
  "description": "A document content block for PDFs and text documents.",
  "properties": {
    "type": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "description": "The source of the document."
    },
    "title": {
      "type": "string",
      "description": "Optional title for the document."
    },
    "context": {
      "type": "string",
      "description": "Optional context about the document."
    },
    "citations": {
      "type": "object",
      "description": "Citation configuration for the document."
    }
  }
}