Expand description
Memory management utilities for plugins
This module provides safe wrappers around the unsafe FFI memory management operations required by the plugin API.
Functions§
- html_
content - Helper to create an HTML content response
- image_
content Deprecated - Helper to create an image content response (legacy)
- image_
data_ content - Helper to create an image content response with base64 data
- image_
url_ content - Helper to create an image content response with URL
- json_
content - Helper to create a JSON content response
- markdown_
content - Helper to create a Markdown content response
- multi_
content - Helper to create a multi-content response
- prepare_
result ⚠ - Prepare a result for return to the framework
- resource_
content - Helper to create a resource content response
- resource_
list_ response - Build MCP resources/list response JSON
- resource_
read_ response - Build MCP resources/read response JSON
- return_
error ⚠ - Return an error result to the framework
- return_
success ⚠ - Return a success result to the framework
- standard_
free_ ⚠string - Standard free_string implementation
- text_
content - Helper to create a text content response