list_knowledge_documents
List all documents and webpages available in the project’s knowledge base. Use this to discover what sources exist before searching or fetching full content. MCP has access to all project knowledge (no agent scoping).Use Cases
- Discover what documents and webpages are in the knowledge base
- Build a catalog or browser UI for project knowledge
- Get exact document names to pass to
get_document_full_content - Verify that knowledge sources are available before searching
Parameters
This tool has no parameters.Response
boolean
Whether the operation succeeded
array
Array of source objects, each containing:
name: Display name of the document or webpagetype:"document"or"webpage"id: Internal identifierurl: (Webpages only) URL of the webpage
string
Human-readable summary of the list (e.g. “I have access to 3 knowledge source(s): Documents (2): …”)
integer
Total number of knowledge sources
Example Request
Example Response
Behavior
- Returns all documents and webpages in the project (no agent scoping)
- Document names are suitable for passing to
get_document_full_content - Empty knowledge base returns an empty
documentsarray andcount: 0
Error Handling
On failure, the response includessuccess: false and an error or message field. The documents array may be empty.
Best Practices
- Call before get_document_full_content: Use the returned
namevalues exactly when callingget_document_full_content - Cache sparingly: List can change as new documents are added; refresh when building UIs or after uploads
- Combine with search: Use
list_knowledge_documentsto see what exists; usesearch_knowledgefor semantic queries
Related Tools
- search_knowledge: Search the knowledge base with a query
- get_document_full_content: Retrieve the full text of a document by name
