Import document_tools with context for csrf.