clear_graph
Remove GraphRAG data for a specific document or clear all data (use with caution). Returns the number of deleted records.
Instructions
清理 GraphRAG 数据
清理指定文档或全部的 GraphRAG 数据。
Args: doc_id: 文档 ID(清理单个文档) clear_all: 是否清理全部(危险操作)
Returns: 清理结果,包含删除的记录数
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clear_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No | ||
| clear_all | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||