Google Apps Script
google_apps_scriptGoogle Apps Script is a cloud-based JavaScript platform for creating, managing, deploying, and executing automations across Google Workspace.
Acciones disponibles (16)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Create DeploymentGOOGLE_APPS_SCRIPT_CREATE_DEPLOYMENTAcciónCreate a deployment for an Apps Script project from a version and return its deployment ID, configuration, entry points, and update time.
GOOGLE_APPS_SCRIPT_CREATE_DEPLOYMENTAcciónCreate a deployment for an Apps Script project from a version and return its deployment ID, configuration, entry points, and update time.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
fieldsstringGoogle partial-response selector. Omit to return all documented fields.
script_idstringObligatorioScript project Drive ID. Sent in both the request path and the deployment configuration body.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
descriptionstringDescription for the deployment.
pretty_printbooleanWhether Google should pretty-print the JSON response payload.
version_numberintegerProject version number on which to base the deployment.
manifest_file_namestringManifest file name for the deployment.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create ProjectGOOGLE_APPS_SCRIPT_CREATE_PROJECTAcciónCreate an empty standalone or container-bound Apps Script project and return its project metadata and script ID.
GOOGLE_APPS_SCRIPT_CREATE_PROJECTAcciónCreate an empty standalone or container-bound Apps Script project and return its project metadata and script ID.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
titlestringTitle for the new project; Google does not require this field.
fieldsstringGoogle partial-response selector. Omit to return all documented fields.
parent_idstringDrive ID of a Google Docs, Sheets, Forms, or Slides file to bind the script to; omit for a standalone project.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
pretty_printbooleanWhether Google should pretty-print the response payload.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create VersionGOOGLE_APPS_SCRIPT_CREATE_VERSIONAcciónCreate an immutable numbered snapshot from an Apps Script project's current code and return its assigned version metadata.
GOOGLE_APPS_SCRIPT_CREATE_VERSIONAcciónCreate an immutable numbered snapshot from an Apps Script project's current code and return its assigned version metadata.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
fieldsstringGoogle partial-response selector. Omit to return all documented fields.
script_idstringObligatorioScript project Drive ID. Sent in both the request path and the documented Version body field.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
descriptionstringDescription for the new immutable version.
pretty_printbooleanWhether Google should pretty-print the response payload.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete DeploymentGOOGLE_APPS_SCRIPT_DELETE_DEPLOYMENTAcciónPermanently undeploy a deployment from an Apps Script project; this does not delete the project or version.
GOOGLE_APPS_SCRIPT_DELETE_DEPLOYMENTAcciónPermanently undeploy a deployment from an Apps Script project; this does not delete the project or version.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
fieldsstringGoogle partial-response selector. Omit to return all documented response fields.
script_idstringObligatorioScript project Drive ID.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
pretty_printbooleanWhether Google should pretty-print the response payload.
deployment_idstringObligatorioDeployment ID to undeploy.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get DeploymentGOOGLE_APPS_SCRIPT_GET_DEPLOYMENTAcciónGet one Apps Script deployment by project and deployment ID, including its configuration and externally accessible entry points.
GOOGLE_APPS_SCRIPT_GET_DEPLOYMENTAcciónGet one Apps Script deployment by project and deployment ID, including its configuration and externally accessible entry points.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
fieldsstringGoogle partial-response selector. Omit to return all documented fields.
script_idstringObligatorioScript project Drive ID.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
pretty_printbooleanWhether Google should pretty-print the JSON response payload.
deployment_idstringObligatorioDeployment ID to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get ProjectGOOGLE_APPS_SCRIPT_GET_PROJECTAcciónGet metadata for one Apps Script project, including its title, parent, timestamps, creator, and last modifying user.
GOOGLE_APPS_SCRIPT_GET_PROJECTAcciónGet metadata for one Apps Script project, including its title, parent, timestamps, creator, and last modifying user.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
fieldsstringGoogle partial-response selector. Omit to return all documented response fields.
script_idstringObligatorioScript project Drive ID to retrieve.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
pretty_printbooleanWhether Google should pretty-print the response payload.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Project ContentGOOGLE_APPS_SCRIPT_GET_PROJECT_CONTENTAcciónGet the current HEAD or a numbered version of an Apps Script project's complete file set, including source code and file metadata.
GOOGLE_APPS_SCRIPT_GET_PROJECT_CONTENTAcciónGet the current HEAD or a numbered version of an Apps Script project's complete file set, including source code and file metadata.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
fieldsstringGoogle partial-response selector. Omit to return all documented response fields.
script_idstringObligatorioScript project Drive ID whose files to retrieve.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
pretty_printbooleanWhether Google should pretty-print the response payload.
version_numberintegerProject version to retrieve; omit for the current HEAD content.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Project MetricsGOOGLE_APPS_SCRIPT_GET_PROJECT_METRICSAcciónGet weekly or daily execution, failure, and active-user metrics for a script project, optionally restricted to one deployment.
GOOGLE_APPS_SCRIPT_GET_PROJECT_METRICSAcciónGet weekly or daily execution, failure, and active-user metrics for a script project, optionally restricted to one deployment.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
fieldsstringGoogle partial-response selector. Omit to return all documented response fields.
script_idstringObligatorioScript project Drive ID whose metrics to retrieve.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
pretty_printbooleanWhether Google should pretty-print the response payload.
deployment_idstringOnly return metrics for this deployment ID.
metrics_granularitystringObligatorioenumTime granularity for returned metric intervals; prefer WEEKLY or DAILY.
UNSPECIFIED_GRANULARITYWEEKLYDAILY
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get VersionGOOGLE_APPS_SCRIPT_GET_VERSIONAcciónGet one immutable version of an Apps Script project by its version number.
GOOGLE_APPS_SCRIPT_GET_VERSIONAcciónGet one immutable version of an Apps Script project by its version number.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
fieldsstringGoogle partial-response selector. Omit to return all documented response fields.
script_idstringObligatorioScript project Drive ID.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
pretty_printbooleanWhether Google should pretty-print the response payload.
version_numberintegerObligatorioVersion number to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List DeploymentsGOOGLE_APPS_SCRIPT_LIST_DEPLOYMENTSAcciónReturn one page of deployments for an Apps Script project, including each deployment's configuration and entry points.
GOOGLE_APPS_SCRIPT_LIST_DEPLOYMENTSAcciónReturn one page of deployments for an Apps Script project, including each deployment's configuration and entry points.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
cursorstringContinuation token returned as next_cursor by a previous call.
fieldsstringGoogle partial-response selector. Omit to return all documented fields.
page_sizeintegerMaximum deployments to return on this page; Google defaults to 50 and documents no maximum.
script_idstringObligatorioScript project Drive ID whose deployments to list.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
pretty_printbooleanWhether Google should pretty-print the JSON response payload.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Script ProcessesGOOGLE_APPS_SCRIPT_LIST_SCRIPT_PROCESSESAcciónReturn one page of execution processes for a script project, optionally filtered by function, deployment, time, type, status, or connected-user access level.
GOOGLE_APPS_SCRIPT_LIST_SCRIPT_PROCESSESAcciónReturn one page of execution processes for a script project, optionally filtered by function, deployment, time, type, status, or connected-user access level.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
cursorstringContinuation token returned as next_cursor by a previous call.
fieldsstringGoogle partial-response selector. Omit to return all documented fields.
end_timestringdate-timeOnly return processes completed at or before this RFC 3339 timestamp.
statusesstring[]Only return processes with one of these statuses. Values are sent as repeated query parameters.
page_sizeintegerMaximum processes to return on this page. Google defaults to 50 and documents no maximum.
script_idstringScript project Drive ID whose processes to list. Google documents this field as optional.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
start_timestringdate-timeOnly return processes started at or after this RFC 3339 timestamp.
pretty_printbooleanWhether Google should pretty-print the response payload.
deployment_idstringOnly return processes from this deployment ID.
function_namestringOnly return processes for this script function name.
process_typesstring[]Only return processes with one of these execution types. Values are sent as repeated query parameters.
user_access_levelsstring[]Only return processes for which the connected user has one of these access levels. Values are sent as repeated query parameters.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List User ProcessesGOOGLE_APPS_SCRIPT_LIST_USER_PROCESSESAcciónReturn one page of Apps Script executions made by or for the connected user, optionally filtered by project, function, deployment, time, type, status, access level, or project name.
GOOGLE_APPS_SCRIPT_LIST_USER_PROCESSESAcciónReturn one page of Apps Script executions made by or for the connected user, optionally filtered by project, function, deployment, time, type, status, access level, or project name.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
cursorstringContinuation token returned as next_cursor by a previous call.
fieldsstringGoogle partial-response selector. Omit to return all documented response fields.
end_timestringdate-timeOnly return processes completed at or before this RFC 3339 timestamp.
statusesstring[]Only return processes with one of these statuses.
page_sizeintegerMaximum processes to return on this page; Google defaults to 50 and documents no maximum.
script_idstringOnly return processes from this script project Drive ID.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
start_timestringdate-timeOnly return processes started at or after this RFC 3339 timestamp.
pretty_printbooleanWhether Google should pretty-print the response payload.
project_namestringOnly return processes whose project name contains this text.
deployment_idstringOnly return processes from this deployment ID.
function_namestringOnly return processes for this script function name.
process_typesstring[]Only return processes with one of these execution types.
user_access_levelsstring[]Only return processes for which the connected user has one of these access levels.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List VersionsGOOGLE_APPS_SCRIPT_LIST_VERSIONSAcciónReturn one page of immutable versions for an Apps Script project with their numbers, creation times, and descriptions.
GOOGLE_APPS_SCRIPT_LIST_VERSIONSAcciónReturn one page of immutable versions for an Apps Script project with their numbers, creation times, and descriptions.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
cursorstringContinuation token returned as next_cursor by a previous call.
fieldsstringGoogle partial-response selector. Omit to return all documented fields.
page_sizeintegerMaximum versions to return on this page; Google defaults to 50 and documents no maximum.
script_idstringObligatorioScript project Drive ID whose versions to list.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
pretty_printbooleanWhether Google should pretty-print the response payload.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Replace Project ContentGOOGLE_APPS_SCRIPT_REPLACE_PROJECT_CONTENTAcciónDestructively replace the complete HEAD file set of an Apps Script project. Every existing file omitted from files is permanently deleted, and files must include a JSON manifest named appsscript.
GOOGLE_APPS_SCRIPT_REPLACE_PROJECT_CONTENTAcciónDestructively replace the complete HEAD file set of an Apps Script project. Every existing file omitted from files is permanently deleted, and files must include a JSON manifest named appsscript.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
filesobject[]ObligatorioComplete replacement file set. Existing project files omitted from this list are permanently deleted. Include a file named appsscript with type JSON containing a valid project manifest.
fieldsstringGoogle partial-response selector. Omit to return all documented response fields.
script_idstringObligatorioScript project Drive ID. Sent in both the request path and the documented Content body.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
pretty_printbooleanWhether Google should pretty-print the response payload.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Run FunctionGOOGLE_APPS_SCRIPT_RUN_FUNCTIONAcciónRun a function in an API Executable deployment. In addition to the base userinfo.email grant, the connection must include every OAuth scope used by the target script; add those target-specific permissions as custom scopes on the auth config. The function can have arbitrary external side effects.
GOOGLE_APPS_SCRIPT_RUN_FUNCTIONAcciónRun a function in an API Executable deployment. In addition to the base userinfo.email grant, the connection must include every OAuth scope used by the target script; add those target-specific permissions as custom scopes on the auth config. The function can have arbitrary external side effects.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
fieldsstringGoogle partial-response selector. Omit to return all documented response fields.
dev_modebooleanIf true and the caller owns the script, run the latest saved code instead of the deployed version.
parametersarrayOrdered function arguments. Values must be primitives, arrays, or plain objects, not Apps Script service objects.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
pretty_printbooleanWhether Google should pretty-print the response payload.
deployment_idstringObligatorioAPI Executable deployment ID, not the script project's Drive ID.
function_namestringObligatorioFunction to execute without parentheses; may use a library-qualified name such as Library.libFunction1.
session_statestringDeprecated Android add-on session ID retained for complete API coverage.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update DeploymentGOOGLE_APPS_SCRIPT_UPDATE_DEPLOYMENTAcciónReplace an Apps Script deployment's configuration, such as its version, description, or manifest file name.
GOOGLE_APPS_SCRIPT_UPDATE_DEPLOYMENTAcciónReplace an Apps Script deployment's configuration, such as its version, description, or manifest file name.
Parámetros de entrada
altstringResponse format. Only JSON is supported because this action returns a typed JSON response.
fieldsstringGoogle partial-response selector. Omit to return all documented fields.
script_idstringObligatorioScript project Drive ID. Sent in the request path and as deploymentConfig.scriptId in the request body.
quota_userstringOpaque quota attribution key, up to 40 characters; do not put personal data here.
descriptionstringUpdated deployment description.
pretty_printbooleanWhether Google should pretty-print the JSON response payload.
deployment_idstringObligatorioDeployment ID to update.
version_numberintegerVersion number on which the updated deployment is based.
manifest_file_namestringUpdated manifest file name for the deployment.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not