Cosense icon

Cosense

Read and write pages in Cosense (formerly Scrapbox)

Page → Get Smart Context

AI-generated

Overview

This node operation retrieves the smart context of a specified page within a Cosense/Scrapbox project. It fetches related pages based on the depth of links specified (either 1-hop or 2-hop links). This is useful for understanding the context and connections of a page by exploring directly linked pages or pages linked from those pages, aiding in content discovery and navigation within the project.

Use Case Examples

  1. Retrieve all pages directly linked from a given page to analyze immediate context.
  2. Fetch pages linked from the current page and also pages linked from those pages to get a broader context network.

Properties

Name Meaning
Project Name The name of your Cosense/Scrapbox project where the page resides.
Page Title The title of the page to get the smart context for.
Context Type The depth of related pages to retrieve, either 1-hop (direct links) or 2-hop (links from linked pages).

Output

JSON

  • text - The smart context text content retrieved for the specified page.
  • contextType - The type of context retrieved (1-hop or 2-hop links).
  • pageTitle - The title of the page for which the smart context was retrieved.

Dependencies

  • Requires an API key credential for Cosense API authentication.

Troubleshooting

  • Ensure the project name and page title are correctly specified and exist in the Cosense project.
  • Verify that the API credentials are valid and have sufficient permissions to access the project data.
  • If the smart context retrieval returns empty or incomplete data, check the page's link structure to confirm it has the expected linked pages.

Discussion