Search artifacts
searchSearch readable artifacts: the title, and the current version's headings (a leading heading only with text of its own) and body of markdown, HTML, code and text (not alias, description or metadata), matched by stemmed English words, not characters. Scoped to a workspace (workspaceId, or an artifactId in one), each result carries its best passages, and ranking blends keywords with meaning where the server has an embedding provider; pending counts chunks not yet searchable by meaning (absent with match: 'words', which already reads them). Elsewhere, keyword ranking. match: 'words' (with q) returns only results whose text holds the query's words (an identifier, say), none when none does; each result's matchedBy says whether its text holds the words or it was found by meaning alone. rank is a relative order (the first is 1 when keywords and meaning are blended). Follow nextCursor as offset for remaining results; mode reports how the search ranked.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | The search text. Omit it to list by recency within the other filters. | |
| why | No | Optional, accepted and not recorded by this operation. If you send one, one sentence on the goal this change serves. At most 300 characters. | |
| team | No | Only artifacts shared with this team (slug or id). Not with workspaceId. | |
| type | No | Only artifacts of this type. | |
| limit | No | Results per page, 1 to 200 (with artifactId, passages of that one artifact). | |
| match | No | words: only results whose text contains the query's words, nothing when none does; any: words and meaning together where the server ranks by meaning. | any |
| since | No | Only what happened since: an ISO 8601 timestamp, or a time back: a number of days (7 = the last week, 0.5 = the last 12 hours) or 30m, 12h, 3d, 2w. | |
| offset | No | Results to skip: the next page starts here. | |
| artifactId | No | Search one artifact (its id or alias): its best passages, best first, up to limit. In a workspace, pass no scope or its own workspaceId. | |
| workspaceId | No | Search one workspace, by its id or its slug (not with team): ranks by keywords, and by meaning too where the server has an embedding provider, and returns each result's best passages. A workspace you cannot read is refused before the query is embedded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| items | Yes | ||
| total | Yes | ||
| partial | Yes | ||
| pending | No | Workspace scope only, absent with match: 'words': chunks not yet searchable by meaning. Keywords already find them. | |
| nextCursor | Yes |