support multiple history and saved_content; add file selection tools
support multiple history and saved_content; add file selection tools