Search Package Source Code (No indexing required!)
Ask your coding agent: “Use package search to find how error handling is implemented in the
requests Python library” or “Search the numpy package for array manipulation examples”Index Documentation, Repositories, Research Papers, or Datasets
Try indexing public documentation, a repository, research papers, or HuggingFace datasets:
- “Index https://docs.trynia.ai/”
- “Index https://github.com/browser-use/browser-use”
- “Index https://arxiv.org/abs/2401.12345” (arXiv papers)
- “Index https://huggingface.co/datasets/openai/gsm8k” (HuggingFace datasets)
- “Use nia deep research to compare the best GraphRAG frameworks and then index the one with least latency.”
Monitor Progress and Explore
Check your indexed resources using
manage_resource:- “List my resources” or “Check the status of my indexing jobs”
- Visit app.trynia.ai to see all your indexed content
Available Tools
Universal Indexing
index- Index repos, docs, research papers, or local folders (auto-detects type)auto_subscribe_dependencies- Index all dependencies from package.json, requirements.txt, and more
Universal Search
search- Semantic search across repos, docs, papers, and local foldersnia_package_search_hybrid- AI-powered semantic search in package source code
Navigation & Reading
nia_read- Read content from repo, docs, package, or local foldernia_grep- Regex search in repo, docs, package, or local foldernia_explore- Browse file structure (tree/ls actions)
Resource Management
manage_resource- List, status, rename, delete, or subscribe to resources
Research & Analysis
nia_research- AI research with 3 modes: quick, deep, oraclenia_advisor- Analyze your code against documentation for recommendations
Context Sharing
context- Cross-agent context sharing with memory types (scratchpad, episodic, fact, procedural)
Complete Tool Reference
Package Search (No Indexing Required)
Package Search (No Indexing Required)
nia_package_search_hybrid
Semantic search in package source code with optional regex filtering. Search 3,000+ packages from PyPI, NPM, Crates.io, and Go modules without indexing.Parameters:registry(str): One of “npm”, “py_pi”, “crates_io”, “golang_proxy”package_name(str): Package name (for Go: “org/repo” format)query(str): Natural language search querypattern(str, optional): Regex filter to narrow resultsversion(str, optional): Specific package version
Universal Indexing Tools
Universal Indexing Tools
index
Universal indexing tool that intelligently detects and indexes GitHub repositories, documentation, research papers, or local folders.Auto-Detection:- GitHub URLs (containing “github.com”) → Repository indexing
- arXiv URLs (containing “arxiv.org”) → Research paper indexing
- HuggingFace dataset URLs (containing “huggingface.co/datasets”) → Dataset indexing
- Local folder path provided → Local folder indexing
- All other URLs → Documentation indexing
url(str, optional): GitHub repository URL, documentation site URL, arXiv ID/URL, or HuggingFace dataset URL (not needed for local folders)resource_type(str, optional): Override auto-detection - “repository”, “documentation”, “research_paper”, “huggingface_dataset”, or “local_folder”
branch(str, optional): Branch to index (defaults to main branch)
url_patterns(List[str], optional): URL patterns to include in crawlingexclude_patterns(List[str], optional): URL patterns to exclude from crawlingonly_main_content(bool, default=True): Extract main content only, skip nav/footercheck_llms_txt(bool, default=True): Check for /llms.txt filellms_txt_strategy(str, default=“prefer”): Strategy for handling llms.txt - “prefer”, “only”, or “ignore”wait_for(int, optional): Wait time in milliseconds for dynamic content to loadinclude_screenshot(bool, optional): Capture screenshots of pagesmax_age(int, optional): Cache max age in seconds
folder_path(str, optional): Absolute path to a folder on your machine (e.g.,/Users/me/project)folder_name(str, optional): Display name for the folder (defaults to folder basename)files(List[dict], optional): List of{path, content}dicts (auto-read iffolder_pathprovided)
manage_resource action “status”Examples:get_github_file_tree
Get file and folder structure directly from GitHub API without indexing.Parameters:repository(str, required): Repository identifier (owner/repo format)branch(str, optional): Branch name (defaults to repository’s default branch)include_paths(List[str], optional): Only show files in these pathsexclude_paths(List[str], optional): Hide files in these pathsfile_extensions(List[str], optional): Only show these file typesexclude_extensions(List[str], optional): Hide these file typesshow_full_paths(bool, default=False): Show full paths instead of tree structure
auto_subscribe_dependencies
Automatically index all dependencies from your project’s manifest file. Parses the manifest, maps packages to documentation URLs, and subscribes to indexed docs.package.json(npm/Node.js)requirements.txt(Python)pyproject.toml(Python)Cargo.toml(Rust)go.mod(Go)Gemfile(Ruby)
manifest_content(str, required): Raw content of the manifest filemanifest_type(str, optional): Auto-detected from content if not providedinclude_dev_dependencies(bool, default=False): Include devDependenciesmax_new_indexes(int, default=150): Maximum new documentation indexes to startdry_run(bool, default=False): Preview mode - shows what would happen without subscribing
This feature indexes 10-100 dependencies at a time. Best suited for Pro & Startup plans due to indexing volume.
Universal Search
Universal Search
search
Semantic search across indexed repositories, documentation, research papers, and local folders. Omit sources for universal hybrid search across all indexed content.Parameters:query(str, required): Natural language search questionrepositories(List[str], optional): List of repositories to search (owner/repo format)data_sources(List[str], optional): Documentation/research paper sources (UUID, display_name, URL, or arXiv URL)local_folders(List[str], optional): Local folder IDs to search (private, searched separately)category(str, optional): Filter local folder results by classification categorysearch_mode(str, default=“unified”): Search scope - “unified”, “repositories”, or “sources”include_sources(bool, default=True): Include source code/document snippets
Navigation & Reading Tools
Navigation & Reading Tools
Resource Management
Resource Management
manage_resource
Unified resource management tool for repositories, documentation, research papers, HuggingFace datasets, and local folders.Actions:Action: “list”
List all indexed resources with their status.Parameters:action(str, required): “list”resource_type(str, optional): Filter by “repository”, “documentation”, “research_paper”, “huggingface_dataset”, “local_folder”, or None for allquery(str, optional): Text filter (matches repo/display_name/url/title/id)limit(int, default=10): Maximum items to return per section (1-100)offset(int, default=0): Pagination offsetview(str, default=“auto”): Output detail level - “auto”, “summary”, “compact”, “detailed”show_all(bool, default=False): Ignore limit/offset and show all matches
Action: “status”
Check indexing progress and status of any resource.Parameters:action(str, required): “status”resource_type(str, required): “repository”, “documentation”, “research_paper”, “huggingface_dataset”, or “local_folder”identifier(str, required): Repository name (owner/repo), documentation UUID/URL, paper identifier, or local folder ID
Action: “rename”
Rename a resource for better organization.Parameters:action(str, required): “rename”resource_type(str, required): “repository”, “documentation”, “research_paper”, “huggingface_dataset”, or “local_folder”identifier(str, required): Resource identifier (owner/repo, UUID/URL, or local folder ID)new_name(str, required): New display name (1-100 characters)
Action: “delete”
Remove an indexed resource.Parameters:action(str, required): “delete”resource_type(str, required): “repository”, “documentation”, “research_paper”, “huggingface_dataset”, or “local_folder”identifier(str, required): Resource identifier (owner/repo, UUID/URL, or local folder ID)
Action: “subscribe”
Subscribe to a globally indexed public source. If the source is already indexed by others, you get instant access without re-indexing.Parameters:action(str, required): “subscribe”resource_type(str, required): “repository”, “documentation”, “research_paper”, or “huggingface_dataset”identifier(str, required): URL of the source to subscribe to
- For repositories: owner/repo format (e.g., “facebook/react”) or GitHub URL
- For documentation: UUID preferred, also supports display name or URL
- For research papers: UUID or arXiv abs/pdf URL
- For HuggingFace datasets: UUID or dataset_id (e.g., “openai/gsm8k”, “squad”)
- For local folders: UUID or display name
Research & Analysis Tools
Research & Analysis Tools
nia_research
AI-powered research with three modes for different use cases.Modes:| Mode | Description | Best For |
|---|---|---|
quick | Fast web search | Finding repos, docs, quick answers |
deep | AI agent research | Comparisons, evaluations, analysis |
oracle | Full autonomous research | Complex multi-step investigations |
query(str, required): Research questionmode(str, default=“quick”): “quick”, “deep”, or “oracle”
nia_advisor
Analyze your code against documentation for tailored recommendations. Compares your implementation with best practices from indexed docs.Parameters:code(str, required): Your code to analyzedoc_source_id(str, required): Documentation source to compare againstquestion(str, optional): Specific aspect to focus on
Context Sharing
Context Sharing
context
Cross-agent context sharing for saving, retrieving, and managing conversation contexts.Memory Types:| Type | Duration | Best For |
|---|---|---|
scratchpad | 1 hour | Temporary working memory |
episodic | 7 days | Session-based context |
fact | Permanent | Learned facts about the codebase |
procedural | Permanent | How-to knowledge and procedures |
Action: “save”
Save conversation context.Parameters:action(str, required): “save”title(str, required): Descriptive titlesummary(str, required): Brief summarycontent(str, required): Full conversation contextagent_source(str, required): Which agent created this (e.g., “cursor”, “claude-code”)memory_type(str, optional): “scratchpad”, “episodic”, “fact”, or “procedural”tags(List[str], optional): Searchable tagsedited_files(List[dict], optional): Files modified during conversation

