Actions15
Overview
This node integrates with Cosense (formerly Scrapbox) to interact with pages within a project. Specifically, the "Get Plaintext" operation under the "Page" resource retrieves the content of a specified page as plain text. This is useful when you want to extract the raw textual content of a page for further processing, analysis, or integration with other systems.
Common scenarios include:
- Exporting page content for use in external text processors or document generators.
- Feeding page text into natural language processing workflows.
- Archiving or backing up page content in a simple text format.
Example: You have a project named "my-project" and want to get the plain text content of a page titled "Meeting Notes". Using this node operation, you can fetch that content easily and pass it downstream in your workflow.
Properties
| Name | Meaning |
|---|---|
| Project Name | The name of your Cosense/Scrapbox project from which to retrieve the page content. |
| Page Title | The title of the page whose plain text content you want to get. |
Output
The output JSON contains a single field:
text: A string representing the entire content of the requested page in plain text format.
No binary data is output by this operation.
Example output JSON:
{
"text": "This is the full plain text content of the page."
}
Dependencies
- Requires an API key credential for authenticating with the Cosense API.
- The node uses the Cosense API client internally to communicate with the Cosense service.
- No additional environment variables are explicitly required beyond the API credential.
Troubleshooting
Common issues:
- Incorrect project name or page title will result in errors or empty results.
- Missing or invalid API credentials will cause authentication failures.
- Network connectivity issues may prevent successful API calls.
Error messages:
- Authentication errors typically indicate missing or invalid API keys; ensure the credential is configured correctly.
- "Page not found" errors suggest the specified page title does not exist in the given project; verify spelling and case sensitivity.
- Rate limiting or API quota exceeded errors require checking your Cosense account limits.
Links and References
- Cosense Official Website
- Scrapbox Documentation
- Cosense API Documentation (for detailed API usage and capabilities)