As already noted, this is all a string in Tcl, so you can just use the given string as a whole or whatever you need. The only caveat is that this should be something that can be interpreted as what you want to use in it (i.e. you can use "a" as an integer)
You can check if something can be interpreted as the desired type using the string is subcommand:
string is integer "5" ;# true string is integer "a" ;# false string is list "ab cc" ;# true string is list "{ab}c" ;# false
source share