dlt._workspace.mcp.tools._ai_context_api_client
search_sources
@with_config(spec=WorkspaceRuntimeConfiguration,
sections=("runtime", "workspace"))
def search_sources(query: str = "",
ai_context_api_url: str = None) -> List[TSourceItem]
Search for available sources by name and description.
Arguments:
query- Search string. Empty string returns all sources alphabetically.ai_context_api_url- Base URL of the AI context API (auto-injected from config)
Returns:
List of source items, each with source_name, description, and optional description_verbose and sample_urls fields.
Raises:
AiContextApiError- If there's an error connecting to the API