Get extraction prompt
get_extraction_promptAdd a document to the knowledge graph by extracting it YOURSELF, in this chat.
Use whenever the user shares a document/notes/transcript and wants it
captured in the graph, and you (this assistant) should do the extraction.
`memory` is the graph's slug from list_my_memories. `pass_name` is
"classes" or "objects" (the API's `pass`): fetch ONE pass per call, as
both at once can be too long for your tool output.
The flow: (1) get_extraction_prompt(memory, pass_name="classes") and run
its prompt over the document you already have, checking any class you
would mint with one resolve_names call; (2) submit that JSON alone:
submit_extraction_from_llm(memory, {"classes": ...}, source_doc=...);
(3) get_extraction_prompt(memory, pass_name="objects"), run it, then call
resolve_names ONCE with every candidate name and reuse each returned
canonical name + class; (4) submit_extraction_from_llm(memory,
{"objects": ...}) with the same source_doc. Each reply's `instructions`
says the next step. The document is NOT sent to the server, and no object
list is embedded in the prompts: resolve_names is how you see what exists.
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": {
"memory": "<memory>"
},
"name": "get_extraction_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory | Yes | ||
| pass_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||