Actions15
Overview
This node interacts with Cosense (formerly Scrapbox) to read and write page data within projects. Specifically, the "Get Page Icon" operation retrieves the icon associated with a given page title in a specified project. This is useful when you want to visually represent pages by their icons in workflows or dashboards.
Practical examples include:
- Displaying page icons alongside page titles in a custom dashboard.
- Fetching page metadata including icons for documentation or reporting purposes.
- Automating content management tasks that require page icon retrieval.
Properties
| Name | Meaning |
|---|---|
| Project Name | The name of your Cosense/Scrapbox project where the page resides. |
| Page Title | The title of the page whose icon you want to retrieve. |
Output
The output JSON contains the data returned by the Cosense API client for the page icon. Typically, this will be an object representing the icon details of the specified page. The exact structure depends on the API response but generally includes icon type or URL information.
No binary data output is indicated for this operation.
Example output snippet (conceptual):
{
"icon": "📄",
"type": "emoji"
}
Dependencies
- Requires access to the Cosense API via an API key credential configured in n8n.
- The node uses an internal API client (
CosenseApiClient) to communicate with Cosense endpoints. - Proper project and page names must be provided to successfully fetch the icon.
Troubleshooting
Common issues:
- Incorrect or misspelled project or page names will result in errors or empty responses.
- Missing or invalid API credentials will cause authentication failures.
- Network connectivity problems can prevent API calls from succeeding.
Error messages:
- Authentication errors indicate missing or invalid API keys; verify credentials setup.
- "Page not found" errors suggest the specified page title does not exist in the project.
- Rate limiting or API quota exceeded errors require checking Cosense API usage limits.
Resolutions:
- Double-check input property values for accuracy.
- Ensure API credentials are correctly configured and valid.
- Handle errors gracefully using the node's "Continue On Fail" option if needed.
Links and References
- Cosense Official Website
- Scrapbox Documentation (legacy)
- n8n Documentation on Creating Custom Nodes