list_endpoints
按分区列出文档侧边栏中的所有页面:端点和指南。它为想要浏览而非搜索的代理提供文档内容概览。列表遵循文档侧边栏,因此不会列出已隐藏的页面。
何时会列出
适用于每台服务器和每种工具模式。工具组可以不包含文档工具。
参数
sectionstring仅列出标题包含此内容的分区,不区分大小写。
projectIdstring要读取的项目。省略此项:服务器已知晓其项目,传入其他项目则会改为读取该项目。
返回值
每个分区都有一个标题,然后每个页面占一行,并附带其 slug。端点会显示其方法和路径,位于分区中的指南也会显示其 groupSlug。
提示
客户端读取的注释,用于判断哪些操作可以在不询问用户的情况下运行。
| 提示 | 值 | 为 true 时,表示 |
|---|---|---|
readOnlyHint | true | 不会更改任何内容 |
destructiveHint | false | 可以更改或删除数据 |
idempotentHint | true | 调用两次不会比调用一次做得更多 |
openWorldHint | true | 会通过网络访问服务器之外的资源 |
示例
一个分区
Call
{
"name": "list_endpoints",
"arguments": {
"section": "invoices"
}
}Result
### Invoices
- **List invoices** `GET /invoices` (slug: `get-invoices`)
- **Retrieve an invoice** `GET /invoices/{invoiceId}` (slug: `get-invoices-invoiceid`)
- **Email an invoice** `POST /invoices/{invoiceId}/send` (slug: `post-invoices-invoiceid-send`)相关内容
- 文档工具:
search_docs、get_endpoint、get_guide、get_sdk_methods、list_sdks、get_changelog。 - 文档工具:代理如何协同使用这些工具。
- 搜索和 AI 聊天:为文档站点上的用户提供同样的搜索。