Search artifacts
searchSearch readable artifacts. Scoped to a workspace (workspaceId, or an artifactId in one), ranking blends keywords with meaning and each result carries its best passages; pending counts chunks not yet searchable by meaning. Elsewhere, keyword ranking. Follow nextCursor as offset for remaining results; mode reports how the search ranked.
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 (not with team): ranks by keywords and meaning together, 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 |