Skip to main content

Module rpc

Module rpc 

Source
Expand description

JSON-RPC handlers for executor feature (session, transcript, memory, plan).

Functions§

handle_memory_search
handle_memory_write
handle_plan_read
Read latest plan from plans/{session_key}-{date}.jsonl (or legacy .json).
handle_plan_textify
Convert plan (task list) JSON to human-readable text. Plan format: [{“id”: 1, “description”: “…”, “tool_hint”: “…”, “completed”: false}, …]
handle_plan_write
Write plan to plans/{session_key}-{date}.jsonl (append). OpenClaw-style plan storage. Each plan is appended as a new line, preserving history (no overwrite).
handle_session_create
handle_session_get
handle_session_update
handle_token_count
handle_transcript_append
handle_transcript_ensure
handle_transcript_read