Get current URL arguments inside ajax callback?
The arguments passed to the page callback are saved in $form_state['build_info']['args'], with the exception of the form ID.

If you use the following definition for the menu item, you would get them there. (Replace 'form ID' with the form builder ID.)

$item['name/%/%/%'] = array(
  // …

  'page callback' =&gt; 'drupal_get_form',
  'page arguments' =&gt; array('form ID', 1, 2, 3),

  // …
);


References


drupal_get_form()
drupal_build_form()