edit_entity
Modify an entity's properties in a LightRAG knowledge graph, with support for renaming and merging into an existing entity when names collide.
Instructions
Update an entity's properties, optionally renaming it (and merging it into an existing entity of the same new name, if allowed).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity_name": "<entity_name>",
"updated_data": "<updated_data>"
},
"name": "edit_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow_merge | No | When a rename collides with an existing entity, merge into it instead of failing. | |
| entity_name | Yes | Name of the entity to update. | |
| allow_rename | No | Allow renaming the entity (when updated_data includes a new entity_name). | |
| updated_data | Yes | Properties to update. Only entity_name (rename target), entity_type, description, source_id and file_path are accepted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||