Prepare task context
dm.prepare_task_memoryPrepare approved, permission-filtered DM context. Contract 2.0.0 requires an explicit intent: lookup is read-only and creates no Task or Execution; start creates one durable Task/Execution; resume refreshes one authorized Execution. Legacy callers retain the 1.6.0 prepare behavior. This tool never approves untrusted content.
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": {
"task": "<task>"
},
"name": "dm.prepare_task_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| tool | No | ||
| intent | No | Explicit v2 lifecycle intent. Required with contract_version 2.0.0; omitted only for the legacy 1.6.0 prepare behavior. | |
| project | No | ||
| task_id | No | DM-issued durable Task id. Never inferred from task prose. | |
| task_type | No | ||
| thread_id | No | Optional task/session continuity identifier (same concept as dm.search_decisions' thread_id). When set, TASK-scoped episodic memory captured under this thread_id is eligible for recall. | |
| agent_type | No | ||
| components | No | ||
| repository | No | ||
| actor_facts | No | ||
| environment | No | ||
| token_budget | No | ||
| resource_facts | No | ||
| task_reference | No | Optional stable label for this task that the agent will reuse in dm.submit_memory_update. Defaults to the start of `task`. Used to link a later report when the agent does not echo task_execution_id. | |
| condition_facts | No | ||
| contract_version | No | 1.6.0 | |
| intended_actions | No | ||
| repository_branch | No | ||
| task_execution_id | No | DM-issued Execution id required by the explicit resume intent. | |
| provider_session_id | No | Optional agent-claimed client/session identifier. Stored as 'agent-claimed'; DM never verifies it. |