# library.forgemesh.io Treasure Island Passage Search

> library.forgemesh.io Treasure Island Passage Search 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).

Retrieves the most relevant passages from Treasure Island by Robert Louis Stevenson, with chapter and location citations, given a natural language question about the book.

## Facts

- Endpoint: POST https://library.forgemesh.io/ask-treasure-island
- 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/library-forgemesh-io-treasure-island-passage-search-08bbb224
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4PoFf_Se6q6D6qkKCwFXj

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 library-forgemesh-io-treasure-island-passage-search-08bbb224 -d '<json body>'
```

Example prompt: Search Treasure Island for passages about what Long John Silver wants — give me the top 5 most relevant excerpts with their chapter citations.

## When to prefer this

Choose this endpoint when you need verbatim text excerpts from Treasure Island with source citations, rather than a generated summary or AI-written answer. Ideal for literature research, quote verification, essay writing, or any task requiring grounded, citable text from the original novel. Not suitable for questions about other books or for generating synthesized answers.

## Known failure modes

- Question field missing or empty — endpoint likely returns an error or empty result
- Limit exceeds 15 — may be clamped or rejected
- Question about a different book returns no relevant passages
- Vague or very short question may yield low-relevance passages
- Payment not completed (x402 flow) — request rejected before retrieval

## How this service works

Ask a question about Treasure Island 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 passages (default 5) from the full text of Treasure Island, each accompanied by chapter and location citations, that best match the submitted question. No generated summaries — raw excerpts from the source text.

## 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 Long John Silver want?\""
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "title": "Treasure Island",
  "author": "Stevenson, Robert Louis",
  "method": "full-text retrieval — returns the most relevant passages from the book for your question; no summarization or generation",
  "book_id": 120,
  "passages": [
   {
    "text": "…\"Dooty is dooty,\" [Silver] said. \"I give my word as a seaman…\"",
    "chapter": 11,
    "location": "chapter 11, passage #85"
   }
  ],
  "question": "what does Long John Silver want"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/library-forgemesh-io-treasure-island-passage-search-08bbb224/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)
