# War and Peace Passage Retrieval

> War and Peace Passage Retrieval is a paid API for AI agents from library.forgemesh.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Searches the full text of War and Peace and returns the most relevant passages with chapter and location citations for a given question.

## Facts

- Endpoint: POST https://library.forgemesh.io/ask-war-and-peace
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/war-and-peace-passage-retrieval-24721494
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WD9YiQgswMRTWz8KCK_jY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability war-and-peace-passage-retrieval-24721494 -d '<json body>'
```

Example prompt: Search War and Peace for passages about Pierre's spiritual awakening and return up to 8 of the most relevant excerpts with their chapter and location citations.

## When to prefer this

Use this endpoint when you need verbatim source text and citations from War and Peace specifically — not a generated summary or interpretation. Ideal for literary research, quote verification, essay writing, or any task requiring direct textual evidence from Tolstoy's novel. Prefer this over a generative AI answer when source fidelity and citation accuracy matter.

## Known failure modes

- Empty or vague question may return low-relevance passages
- Limit exceeding 15 will be capped or rejected
- Network or payment failure returns a 402 or 4xx error
- Question about content not in War and Peace returns low-confidence or empty results

## How this service works

Ask a question about War and Peace and get back the most relevant passages from the book itself, with chapter and location citations. Retrieval only — full-text search, not a generated summary or answer. No license, no API key required.

## Output

A ranked list of up to 15 text passages from War and Peace directly relevant to the submitted question, each accompanied by chapter identifier and positional location within the book. No AI-generated summaries or answers — raw source text only.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "description": "Max passages (default 5, max 15)"
  },
  "question": {
   "type": "string",
   "description": "Your question about the book, e.g. \"what does Pierre think about the war?\""
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "title": "War and Peace",
  "author": "Tolstoy, Leo, graf",
  "method": "full-text retrieval — returns the most relevant passages from the book for your question; no summarization or generation",
  "book_id": 2600,
  "passages": [
   {
    "text": "…[Pierre] felt that everything was going wrong with him, and that his life had become intolerably difficult…",
    "chapter": 3,
    "location": "chapter 3, passage #40"
   }
  ],
  "question": "what does Pierre think about the war"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/war-and-peace-passage-retrieval-24721494/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from library.forgemesh.io](https://www.zero.xyz/host/library.forgemesh.io/llms.txt)
