res = demisto.executeCommand('getContext', {})
if isError(res[0]):
    demisto.results(res)
else:
    md = "**Context data**:\n" + json.dumps(res[0]['Contents'], indent=4)
    demisto.results({'ContentsFormat': formats['markdown'], 'Type': entryTypes['note'], 'Contents': md})

@@ -1,106 +1,4 @@
-res = demisto.executeCommand('getContext', %7B%7D)%0Aif isError(res%5B0%5D):%0A    demisto.results(res)%0Aelse:%0A    
 md =
@@ -18,16 +18,21 @@
 ata**:%5Cn
+%60%60%60%5Cn
 %22 + json
@@ -42,42 +42,47 @@
 mps(
-res%5B0%5D%5B'Contents'%5D, indent=4)%0A    
+demisto.context(), indent=4) + '%5Cn%60%60%60'%0A
 demi
@@ -178,8 +178,9 @@
 ': md%7D)%0A
+%0A

Fix PrintContext to use built-in context data