Update session memory and patch telemetry
update_agent_memoryRecord notes, workspace metadata, and verified patch history in active reverse-engineering session state. Persists updates to session_state.json to keep agent telemetry synchronized after manual Smali edits or manifest changes.
Instructions
Update the active reverse-engineering session memory with notes, target Android workspace metadata, or verified patch history records. Mutates session state in-memory and automatically persists updates to .mcp_memory/session_state.json in workspaceDir; non-null fields merge into state, notes are appended, and patchType with patchDetails logs a verified entry. Use after manual Smali edits, manifest changes, or decompiler discoveries to keep agent telemetry synchronized; use get_agent_context or query_memory_graph instead when inspecting memory without modification.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Engineer or agent observation note to append to the active session memory log (deduplicated automatically) | |
| patchType | No | Category of applied patch (e.g. 'smali_insert', 'smali_create', 'manifest_edit', 'asset_mod', 'security_bypass') | |
| packageName | No | Target Android application package identifier (e.g. 'com.example.targetapp') | |
| patchDetails | No | Descriptive summary of the applied modification (paired with patchType to record a verified entry in patchHistory) | |
| workspaceDir | No | Absolute or relative path to target decompiled APK workspace directory containing AndroidManifest.xml and Smali files | |
| entryActivity | No | Fully qualified class name of launcher/main entry Activity (e.g. 'com.example.targetapp.MainActivity') | |
| applicationClass | No | Fully qualified class name of Android Application subclass (e.g. 'com.example.targetapp.MainApplication') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Status of the memory state update operation. | |
| updatedMemory | Yes | Complete updated session memory state after applying modifications and persisting to disk. |