Search artifacts
searchSearch readable artifacts. 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. Elsewhere, keyword ranking. 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. | |
| 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). | |
| since | No | Only what happened since: an ISO 8601 timestamp, or a number of days back (7 = the last week). | |
| 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 | ||
| nextCursor | Yes |