You can extend context either in a playbook
task, or directly from the command line. Whichever method you use,
Cortex XSOAR recommends that you first run your command with the
raw-response=true
flag.
This will help you identify the information that you want to add
to your extended data.