Run Tool From Source

POST
/v1/tools/run

Attempt to build a tool from source, then run it on the provided arguments

Request

This endpoint expects an object.
source_codestringRequired

The source code of the function.

argsmap from strings to anyRequired

The arguments to pass to the tool.

env_varsmap from strings to stringsOptional

The environment variables to pass to the tool.

namestringOptional

The name of the tool to run.

source_typestringOptional

The type of the source code.

Response

Successful Response

idstring
datedatetime
tool_returnstring
status"success" or "error"
Allowed values: successerror
tool_call_idstring
stdoutlist of stringsOptional
stderrlist of stringsOptional

Errors

Built with