Repositories and search
Search Knowledge
Search many repositories you can read in one call and get ranked passages back.
POST
Preview. This endpoint is available to organisations in the Wordsmith MCP pilot. Other organisations receive
403 mcp_not_enabled. See the preview overview.- With
repository_ids, it searches those, up to 20. - Without it, it searches the 20 repositories you can read that were used most recently.
searched_repository_ids lists the repositories the search covered. A repository whose index does not answer in time is left out of it rather than failing the search. To search one repository, or one folder in it, use Search Repository.
Authentication
Requires an API key, or an OAuth token withrepositories:read.
Body parameters
string
required
What to look for, up to 1,000 characters. A question or a phrase both work, for example
"limitation of liability cap".string[]
Only search these repositories, from
1 to 20. Leave it out to search the 20 most recently used repositories the caller can read.integer
default:"10"
The most results to return, from
1 to 50.Response
Returns200 with the passages and the repositories searched. There is no cursor: raise limit for more results.
object[]
Best match first. Each item is one passage, so one document can appear more than once.
string[]
The repositories this search covered.