File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export type WorkerInput = {
66 project_name : string ;
77 code : string ;
88 client_opts : ClientOptions ;
9+ intent ?: string | undefined ;
910} ;
1011export type WorkerOutput = {
1112 is_error : boolean ;
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export function codeTool(): McpTool {
5656 } ;
5757 const handler = async ( _ : unknown , args : any ) : Promise < ToolCallResult > => {
5858 const code = args . code as string ;
59+ const intent = args . intent as string | undefined ;
5960
6061 // this is not required, but passing a Stainless API key for the matching project_name
6162 // will allow you to run code-mode queries against non-published versions of your SDK.
@@ -78,6 +79,7 @@ export function codeTool(): McpTool {
7879 body : JSON . stringify ( {
7980 project_name : 'imagekit' ,
8081 code,
82+ intent,
8183 client_opts : { } ,
8284 } satisfies WorkerInput ) ,
8385 } ) ;
You can’t perform that action at this time.
0 commit comments