get_smart_context
Retrieve a Cosense/Scrapbox page plus 1-hop or 2-hop linked pages in AI-optimized format to reveal surrounding context and related knowledge.
Instructions
Get smart context for a page on cosense (scrapbox). Returns the target page and its linked pages (1-hop or 2-hop) with full content in AI-optimized format. Useful for understanding the context and related knowledge around a specific topic. Requires COSENSE_MCP_PAT or COSENSE_SID. Uses my-cosense-project project as default if projectName is not specified.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>"
},
"name": "get_smart_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title of the page to get context for | |
| hopCount | No | Number of link hops to include. 1 (default) returns directly linked pages. 2 returns pages linked from linked pages (larger response). | |
| projectName | No | Target project name. If not specified, defaults to 'my-cosense-project'. |