'Call this tool to get a random color. The input should be a string with comma separted names of colors to exclude.',
typeOptions:{
rows: 3,
},
},
{
displayName:'Language',
name:'language',
type:'options',
noDataExpression: true,
options:[
{
name:'JavaScript',
value:'javaScript',
},
{
name:'Python (Beta)',
value:'python',
},
],
default:'javaScript',
},
{
displayName:'JavaScript',
name:'jsCode',
type:'string',
displayOptions:{
show:{
language:['javaScript'],
},
},
typeOptions:{
editor:'codeNodeEditor',
editorLanguage:'javaScript',
},
default:'',
// TODO: Add proper text here later
hint:'You can access the input the tool receives via the input property "query". The returned value should be a single string.',
description:
'JavaScript code to execute.<br><br>Tip: You can use luxon vars like <code>$today</code> for dates and <code>$jmespath</code> for querying JSON structures. <a href="https://docs.n8n.io/nodes/n8n-nodes-base.function">Learn more</a>.',
noDataExpression: true,
},
{
displayName:'Python',
name:'pythonCode',
type:'string',
displayOptions:{
show:{
language:['python'],
},
},
typeOptions:{
editor:'codeNodeEditor',
editorLanguage:'python',
},
default:'',
// TODO: Add proper text here later
hint:'You can access the input the tool receives via the input property "query". The returned value should be a single string.',
'Python code to execute.<br><br>Tip: You can use built-in methods and variables like <code>_today</code> for dates and <code>_jmespath</code> for querying JSON structures. <a href="https://docs.n8n.io/code/builtin/">Learn more</a>.',