strapi_list_authors
Retrieve all author records from the Strapi CMS database to manage content attribution and user permissions.
Instructions
List all authors
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:541-553 (handler)Handler function that lists all authors by making a GET request to Strapi's content-manager API for the author collection.async listAuthors (headers) { const response = await axios.get( `${this.strapiUrl}/content-manager/collection-types/api::author.author`, { headers } ) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } }
- index.js:178-185 (schema)Tool schema definition including name, description, and empty input schema (no parameters required).{ name: 'strapi_list_authors', description: 'List all authors', inputSchema: { type: 'object', properties: {} } },
- index.js:380-382 (registration)Registration of the tool handler in the switch statement within the CallToolRequestSchema handler.case 'strapi_list_authors': return await this.listAuthors(headers)