save_resource
Store AI-generated SVG visualizations or Markdown documents in a knowledge graph to preserve visual representations and node-related documentation.
Instructions
Save AI-generated SVG graphics or Markdown documents to the knowledge graph. This tool must be used in conjunction with get_creation_guidelines and list_graphs tools. Use cases:
Save SVG visualization representation of the graph
Save Markdown documents related to nodes
Batch save multiple resource files
Usage recommendations:
First call get_creation_guidelines to get resource creation standards
Use list_graphs to get target graph ID and node ID (if needed)
Create resource content according to standards
Use this tool to save the resource
After saving, use get_node_details to check resource association status
Return data:
data: Saved resource information
id: Resource ID
type: Resource type (svg/markdown)
title: Resource title
description: Resource description
nodeId: Associated node ID (if any)
createdAt: Creation time
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graphId | Yes | Graph ID, must be obtained from list_graphs return data | |
| resourceType | Yes | Resource type: - svg: SVG graphics file - markdown: Markdown document | |
| title | Yes | Resource title, must comply with naming rules in get_creation_guidelines | |
| content | Yes | Resource content, must comply with format specifications in get_creation_guidelines | |
| description | No | Resource description (optional) | |
| nodeId | No | Associated node ID (optional), if provided must be obtained from nodes array in list_graphs |