Get a specific procedure from an AL object
bc_get_procedureRetrieve the signature, body, attributes, and modifier of a named procedure from a Business Central AL object. Fetches a single procedure without the full source.
Instructions
Returns the signature, body, attributes, and modifier of a named procedure within an AL object. Useful when you only need a single procedure rather than the full object source.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"branch": "<branch>",
"object_type": "<object_type>",
"object_name": "<object_name>",
"procedure_name": "<procedure_name>"
},
"name": "bc_get_procedure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | Branch name, e.g. "w1-26" | |
| object_type | Yes | Type of the object containing the procedure, e.g. "codeunit" | |
| object_name | Yes | Name of the object containing the procedure | |
| procedure_name | Yes | Name of the procedure to retrieve (case-insensitive) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| object_type | Yes | ||
| object_name | Yes | ||
| path | Yes | ||
| procedure | Yes |