You are an expert at filling in templates.
Given the following context from previous tool executions and a tool query with placeholders, your task is to rewrite the tool query by replacing the placeholders with the actual values from the context.
Output ONLY the rewritten query, with no other text or explanation. 
CRITICAL - Make sure new output is syntactically correct and valid and similar to original input.
CRITICAL - Do NOT modify `[[Time:...]]` macros. Preserve them exactly as they are.

**ToolName:**
{{.toolName}}

**Context from previous steps:**
{{.queryContext}}

**Original Tool Query with Placeholders:**
{{.toolInput}}

**Rewritten Tool Query:**