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}.
Metered access — free-key quota or x402 pay-per-call (USDC on Base). Details at /pricing.
| 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) |
curl -s https://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"}}}'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"}'Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/ingest_corpus from your browser.
X-Payment header, or get a free key at /pricing (500 calls/month, no card, no crypto).