salesforce / salesforce/agentscript

[query] how to use pre/post_tool_call on agentforce?

Open
#42 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
267
Forks
54
Avg merge
48m
Merged PRs (30d)
1

Description

I can see, we have pre/post_tool_call in this repo but nothing related to it is present in documentation and how to use the same in agentforce?

Code Ref: https://github.com/salesforce/agentscript/blob/main/packages/compiler/src/generated/agent-dsl.ts#L857

Want to understand if these hooks are supported or not? If yes do we have some examples that we can refer?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at packages/compiler/src/generated/agent-dsl.ts around line 857 and inspect how pre/post_tool_call are defined. Check the existing documentation for related agent hooks, then confirm whether these hooks are supported in Agentforce; done means documenting the supported behavior and adding a usable example if applicable.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.