sii_cognitions - SII Cognitions Search
Overview
The sii_cognitions tool accesses and searches cognitions from the SII backend. It can list cognitions with various filters or get detailed information about specific cognitions. Only available when authenticated with SII.
Tool Name
- Internal Name:
sii_cognitions - Display Name: SII Cognitions
- Icon: Brain
Prerequisites
To use this tool, you need:
- SII Account: A valid SII account is required
- Authentication: Must be authenticated with SII
- Environment Variables:
SII_USERNAME: SII usernameSII_PASSWORD: SII password
Parameters
Required Parameters
| Parameter | Type | Description |
|---|---|---|
action | string | The action to perform: "list" for getting cognitions list, "detail" for getting specific cognition details. |
Optional Parameters (for "list" action)
| Parameter | Type | Description |
|---|---|---|
search | string | Search keyword for filtering cognitions. |
topics | string[] | Topics to filter by (e.g., ["AI", "Technology"]). |
author_filter | string | Author filter. |
source_filter | string | Source filter (default: "all"). |
time_filter | string | Time filter: "day", "week", "month", "all" (default: "day"). |
sort | string | Sort method: "latest", "hot", "most_liked" (default: "latest"). |
limit | number | Number of results to return (default: 20, max: 100). |
skip | number | Number of records to skip for pagination (default: 0). |
Optional Parameters (for "detail" action)
| Parameter | Type | Description |
|---|---|---|
cognition_id | string | Cognition ID for getting details (required for "detail" action). |
Features
Cognition Search:
- Search by keywords
- Filter by topics
- Filter by author and source
- Time-based filtering
Sorting Options:
- Latest cognitions
- Hot/trending cognitions
- Most liked cognitions
Pagination:
- Control result count with
limit - Navigate pages with
skip - Efficient browsing of large result sets
- Control result count with
Detailed Information:
- Get full cognition details by ID
- Access complete content
- View metadata and statistics
Usage Examples
List Latest Cognitions
json
{
"action": "list",
"sort": "latest",
"limit": 10
}Search Cognitions by Keyword
json
{
"action": "list",
"search": "machine learning",
"limit": 20
}Filter by Topics
json
{
"action": "list",
"topics": ["AI", "Deep Learning"],
"sort": "hot"
}Filter by Time Period
json
{
"action": "list",
"time_filter": "week",
"sort": "most_liked",
"limit": 15
}Get Cognition Details
json
{
"action": "detail",
"cognition_id": "abc123xyz"
}Paginated Search
json
{
"action": "list",
"search": "transformer",
"limit": 20,
"skip": 20
}Return Value
For "list" Action
Returns an object containing:
typescript
{
cognitions: [
{
id: string;
title: string;
abstract: string;
author: string;
source: string;
topics: string[];
createdAt: string;
likes: number;
views: number;
}
],
total: number;
hasMore: boolean;
}For "detail" Action
Returns detailed cognition information:
typescript
{
id: string;
title: string;
content: string;
abstract: string;
author: string;
source: string;
topics: string[];
createdAt: string;
updatedAt: string;
likes: number;
views: number;
metadata: object;
}Error Handling
Possible error scenarios:
Authentication Errors:
- Not authenticated with SII
- Invalid credentials
- Expired session
Parameter Errors:
- Invalid action type
- Missing required parameters
- Invalid parameter values
Network Errors:
- Connection timeout
- Service unavailable
- Network interruption
Data Errors:
- Cognition not found
- Invalid cognition ID
- Access denied
Filter Options
Time Filters
"day": Cognitions from the last 24 hours"week": Cognitions from the last 7 days"month": Cognitions from the last 30 days"all": All cognitions (no time filter)
Sort Methods
"latest": Most recently created cognitions"hot": Trending cognitions based on engagement"most_liked": Cognitions with the most likes
Source Filters
Filter cognitions by their source platform or origin (e.g., "arxiv", "reddit", "twitter").
Best Practices
Search Optimization:
- Use specific keywords
- Combine filters for better results
- Use topics to narrow down results
Pagination:
- Use reasonable
limitvalues (10-50) - Implement pagination for large result sets
- Track
skipvalue for navigation
- Use reasonable
Performance:
- Cache frequently accessed cognitions
- Use time filters to reduce result set
- Limit result count when appropriate
Error Handling:
- Check authentication before making requests
- Handle network errors gracefully
- Validate parameters before submission
Authentication Setup
Setting Environment Variables
Linux/macOS:
bash
export SII_USERNAME="your_username"
export SII_PASSWORD="your_password"Windows (PowerShell):
powershell
$env:SII_USERNAME="your_username"
$env:SII_PASSWORD="your_password"Notes
- Authentication Required: This tool requires SII authentication
- Rate Limiting: May be subject to rate limits
- Data Freshness: Cognition data is regularly updated
- Access Control: Some cognitions may have restricted access
Related Tools
sii_web_search: Search the web using SIIsii_deep_research: Conduct comprehensive researchsii_hybrid_search: Combined web and cognition searchsii_cognition_extract_upload: Extract and upload cognitions
