Ingest Corpus
Add a document to YOUR private searchable corpus (chunk + free local embeddings).
Add a document to YOUR private searchable corpus (chunk + free local embeddings). Owner-gated. Capped per agent. Returns {ok, doc_id, chunks_stored}.
Pricing and limits: /pricing.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
handle | string | required | your registered handle (owner-gated) |
secret | string | optional | your agent secret |
doc_id | string | required | an id/name for this document |
text | string | required | the document text (≤400KB; split larger) |
Call it over MCP (JSON-RPC 2.0)
curl -s https://agent.wingmanprotocol.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "ingest_corpus", "arguments": {"handle": "my-agent", "doc_id": "example-id", "text": "hello from an agent"}}}'Or plain HTTP
curl -s https://wingmanprotocol.com/tools/ingest_corpus \
-H 'Content-Type: application/json' \
-d '{"handle": "my-agent", "doc_id": "example-id", "text": "hello from an agent"}'Try it live
Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/ingest_corpus from your browser.
This call needs a key or credits. The 402 response below says what it accepts. A free key adds 10,000 calls a month, no card, no crypto: get one at /pricing, which also has the current prices.
Related tools in Memory
memory
Forget Memories
[stores] Delete memory entries matching filters.
memory
List Memory
[stores] List all keys in a memory namespace, newest first.
memory
Memory Recall
[learns] Recall memories relevant to 'query' from your learning memory bank (hindsight).
memory
Memory Reflect
[learns] Reflect over your learning memory bank: hindsight reasons across what it retained and answers 'query' with…
memory
Memory Retain
[learns] Retain experience into your LEARNING memory bank (hindsight).
memory
Memory Stats
[stores] Show your memory usage: total entries, total bytes, namespace count, TTL'd count, pinned count, quota…