> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.deepmask.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Sites

`sharepoint_search_sites`

Searches for SharePoint sites by keyword. Returns site IDs, display names, and URLs. Use this when you know part of a site's name but not its ID. Pass the returned `id` to `sharepoint_get_site` or `sharepoint_list_drives` to go deeper.

## Parameters

| Parameter         | Type   | Required | Description                                        |
| ----------------- | ------ | -------- | -------------------------------------------------- |
| `query`           | string | Yes      | Search term, e.g. `"marketing"` or `"finance"`.    |
| `limit`           | number | No       | Max results to return (1–100, default 20).         |
| `offset`          | number | No       | Results to skip for pagination (default 0).        |
| `response_format` | string | No       | Output format: `"markdown"` (default) or `"json"`. |

## Returns

A paginated list of matching sites. Each result includes `id`, `displayName`, and `webUrl`. The response also includes `total_count`, `count`, `offset`, `has_more`, and `next_offset` for pagination.

## Example use

> "Find me all SharePoint sites related to HR."
