The DevTools provide a global copy() function.
Use that function in the Console tab to copy any content into your clipboard.
JavaScript
// Copy some static text into the clipboard
copy("hello world");
// Copy the page title
copy(document.title);
// Copy some content from localStorage
copy(localStorage.getItem("test"));