Developing a Fiddler Web Test Plugin
The following article walks you through the process of writing your own fiddler web test plugins and shows you how you can modify what fiddler saves to the .webtest file: https://blogs.msdn.com/slumley/pages/writing-fiddler-web-test-plugins.aspx